Log of /branches/rel-2-2-dev/webwork2/lib/WeBWorK/Authz.pm
Parent Directory
Revision
3998 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Feb 1 03:57:29 2006 UTC (7 years, 3 months ago) by
gage
File length: 7208 byte(s)
Diff to
previous 3972
Moved snippet of ContentGenerator.pm that checked to see if the "report bugs" link could be showed inside
the clause that requires the authentication to have been verified.
This fixes bug #960
.
Revision
3972 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jan 25 23:12:05 2006 UTC (7 years, 3 months ago) by
sh002i
File length: 7209 byte(s)
Diff to
previous 3879
update copyright date range -- 2000-2006. this is probably overkill,
since there are some files that were created after 2000 and some files
that were last modified before 2006.
Revision
3672 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Sep 30 19:16:52 2005 UTC (7 years, 7 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/Authz.pm
File length: 6928 byte(s)
Diff to
previous 3599
modifications to support changes to global.conf.dist adding %userRoles
hash and changing the meaning of values in %permissionLevels.
Authz will now look up the role obtained from %permissionLevels in the
%userRoles hash, and compare the resulting number with the user's
permission level.
Revision
3376 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jul 13 18:03:18 2005 UTC (7 years, 10 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/Authz.pm
File length: 6244 byte(s)
Diff to
previous 3058
Test commit prior to initial full commit of files for addition of the
Gateway testing module. (CVS reports that Authz.pm has changed, but
unix diff shows no changes, so this is testing if CVS will actually
register a change to the file.)
Revision
3058 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Dec 20 21:08:06 2004 UTC (8 years, 4 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/Authz.pm
File length: 6242 byte(s)
Diff to
previous 3053
expansion of Mike's caching fixes. see below:
* separate setCachedUser($userID) method allows explicit setting of user
to cache. This is needed because $r->param("user") is not always set
(i.e. in the case of the initial request for a guest login.
* don't store a copy of a reference to %permissionLevels, as this isn't
any more efficient than accessing the course environment directly.
* always construct the Authz instance.
* fall back on accessing the database if hasPermissions() is called with
a user other than the cached user (or if no user is cached).
* warning output (and assume no permission) if PermissionLevel record
doesn't exist or permission level is empty.
* warn (and assume no permission) if activity is not found in the
%permissionLevels hash.
* don't pass $ce and $db to new(), since they are available in $r.
Revision
3053 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun Dec 19 22:08:36 2004 UTC (8 years, 5 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/Authz.pm
File length: 2417 byte(s)
Diff to
previous 2724
The permission levels are now checked when the authz instance
is created. This reduces the number of calls to the database.
It could cause trouble if there is a change in permission status
between the time when the instance is created and when it is used.
Since this all occurs while rendering one webpage, I don't think
that this time difference will ever cause trouble.
-- Mike
Revision
2724 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Sep 2 22:53:00 2004 UTC (8 years, 8 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/Authz.pm
File length: 2034 byte(s)
Diff to
previous 2506
cleaned up mike's permission level patch to Feedback.pm:
- added receive_feedback permission (conf/global.conf.dist)
- use standard hasPermissions() function (lib/WeBWorK/ContentGenerator/Feedback.pm)
- check for undefined and empty string in permission field (lib/WeBWorK/Authz.pm)
Revision
1663 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Dec 9 01:12:32 2003 UTC (9 years, 5 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/Authz.pm
File length: 1856 byte(s)
Diff to
previous 1636
Normalized headers. All files now contain the text below as a header.
This is important since all files now (a) use the full name of the
package, (b) assign copyright to "The WeBWorK Project", (c) give the
full path of the file (relative to CVSROOT) instead of simply the file
name, and (d) include license and warranty information.
Here is the new header:
################################################################################
# WeBWorK Online Homework Delivery System
# Copyright © 2000-2003 The WeBWorK Projcct, http://openwebwork.sf.net/
# $CVSHeader$
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of either: (a) the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any later
# version, or (b) the "Artistic License" which comes with this package.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the
# Artistic License for more details.
################################################################################
Revision
562 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Sep 27 23:53:42 2002 UTC (10 years, 7 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/Authz.pm
File length: 986 byte(s)
Diff to
previous 494
- created macros/IO.pl, which is loaded with no opmask by PG.pm. It is a copy
of WeBWorK::PG::IO.pm, with some changes to make it work as a macro package.
The translator no longer shares IO.pm's functions with the safe compartment.
This is a BAD THING, and should be reconsidered when the Translator is
revised.
- Changed many (but not all) checks for HTML or HTML_tth modes to match /^HTML/
in the macros.
- changed &header to &head in Problem.pm
- Added problem environment variables for gif2eps and png2eps and modified
&dangerousMacros::alias to use them
- fixed MOST of the harmless warnings in the system. there's still the "Use
of uninitialized value in null operation" warning in template(), tho.
Still to come:
- make images in PDFs work
- fix TTH mode character encodings on mac (maybe)
- have logout button invalidate key
- Pretty die messages (from outside of the translator)
- Feedback - need nice modular way of sending email
- Options - email address and password
Revision
455 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Aug 5 21:34:18 2002 UTC (10 years, 9 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/Authz.pm
File length: 961 byte(s)
Diff to
previous 441
"normalized" files:
- (c) header on all files
- standard order of preamble lines:
1. (c) header
2. package PACKAGENAME;
3. short summary of the package (pod's NAME section)
4. use - pragmatic modules
5. use - standard perl modules
6. use - CPAN modules
7. use - webwork modules
- ALWAYS use strict and use warnings
- use "use base" rather than "our @ISA"
so now we can be happy.
-sam
Revision
390 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Added
Wed Jun 19 22:45:47 2002 UTC (10 years, 11 months ago) by
malsyned
Original Path:
trunk/webwork2/lib/WeBWorK/Authz.pm
File length: 633 byte(s)
This commit brings several packages up to date and working. I wish I could
be more specific, but it's been a while since I've committed. You'll have
to check the CVS diffs for more info.
--Dennis
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.