[system] / trunk / webwork2 / lib / WeBWorK / Authz.pm Repository:
ViewVC logotype

Log of /trunk/webwork2/lib/WeBWorK/Authz.pm

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 4002 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 2 22:29:43 2006 UTC (7 years, 3 months ago) by sh002i
File length: 7127 byte(s)
Diff to previous 3973
forward-port from rel-2-2-dev: (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.)

Although it was not noted in the original commit message, this commit
also removes trailing newlines from error reporting messages in Authz. I
assume this is so that the file/lineno is appened by Perl.

Revision 3973 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 25 23:13:56 2006 UTC (7 years, 3 months ago) by sh002i
File length: 7209 byte(s)
Diff to previous 3834
forward-port from rel-2-2-dev: (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 3834 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 19 03:42:05 2005 UTC (7 years, 5 months ago) by sh002i
File length: 7209 byte(s)
Diff to previous 3672
graceful failure if needed data is not supplied

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
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 3599 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 6 14:18:28 2005 UTC (7 years, 8 months ago) by sh002i
File length: 6397 byte(s)
Diff to previous 3597
uh, hasPermissions() is a method, so it actually gets 3 arguments. print
the arguments received as part of the error message. TESTED THIS TIME!

Revision 3597 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 5 23:43:38 2005 UTC (7 years, 8 months ago) by sh002i
File length: 6312 byte(s)
Diff to previous 3376
fix for security aspect of bug #715 -- reject calls with @_ != 2.

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
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, 5 months ago) by sh002i
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
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
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 2506 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 12 23:37:54 2004 UTC (8 years, 10 months ago) by sh002i
File length: 1964 byte(s)
Diff to previous 2505
fix error in last commit

Revision 2505 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 12 22:15:57 2004 UTC (8 years, 10 months ago) by sh002i
File length: 1915 byte(s)
Diff to previous 1885
Generalized %can settings in Problem.pm with new permissions. Closes bug
#541. See said bug for more details.

Revision 1885 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 15 20:17:35 2004 UTC (9 years, 2 months ago) by sh002i
File length: 1838 byte(s)
Diff to previous 1663
Authen and Authz are now passed only a WeBWorK::Request.

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
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 1636 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 19 18:44:47 2003 UTC (9 years, 6 months ago) by sh002i
File length: 1199 byte(s)
Diff to previous 1221
added code to check for undef return values from DB "get" calls.

Revision 1221 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 19 19:09:43 2003 UTC (9 years, 11 months ago) by sh002i
File length: 1189 byte(s)
Diff to previous 924
if permission level does not exist in database, has_permissions will
return a false value.

Revision 924 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 28 01:38:55 2003 UTC (9 years, 11 months ago) by malsyned
File length: 1120 byte(s)
Diff to previous 817
Added a helpful comment to Authz
Fixed bug #15 in hardcopy
Gave ProblemSetList the proper db calls, now that SQL databases are
working.
-Dennis

Revision 817 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 23 06:39:03 2003 UTC (10 years ago) by sh002i
File length: 1084 byte(s)
Diff to previous 809
rewrote these modules to use the WWDBv2 library. rewrote the Authen.pm
verify function to (hopefully) be more readable.
-sam

Revision 809 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 17 21:30:57 2003 UTC (10 years, 1 month ago) by sh002i
File length: 1120 byte(s)
Diff to previous 682
changed the name of the "courseEnvironment" field in the
ContentGenerator object to "ce", to match the style and conciesness of
the existing "r" and new "db" fields.
-sam

Revision 682 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 6 18:10:47 2003 UTC (10 years, 4 months ago) by sh002i
File length: 1150 byte(s)
Diff to previous 676
make answer previews use $displayMode
write a template escape for printing $user, $effectiveUser, &c. nicely
-sam

Revision 676 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 13 21:49:58 2002 UTC (10 years, 5 months ago) by malsyned
File length: 1146 byte(s)
Diff to previous 562
Added an informative comment
-dennis

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
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 494 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 21 18:31:20 2002 UTC (10 years, 9 months ago) by sh002i
File length: 939 byte(s)
Diff to previous 455
updated copyright header.
-sam

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
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 441 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 25 21:58:22 2002 UTC (10 years, 9 months ago) by malsyned
File length: 660 byte(s)
Diff to previous 390
Added use strict and use warnings, then cleaned up much of the mess that
revealed.
--Dennis

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
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.

  Diffs between and
  Type of Diff should be a

Sort log by:

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9