skodak
51195e6f9f
fixed missing global $CONTEXT in get_context_instance()
2006-08-25 14:15:52 +00:00
toyomoyo
41d7209c7f
some (mainly admin realated) capabilities
2006-08-25 08:27:27 +00:00
toyomoyo
5769734f2a
changing default override values
2006-08-23 08:14:14 +00:00
toyomoyo
945f88ca15
various changes - loading capabilities for questions, quiz, hide tab if no assignalbe or no overridable role is found, added some functions and comments in accesslib
2006-08-23 06:36:08 +00:00
moodler
d9a35e1270
Fixed context caching (wasn't using globals)
2006-08-23 01:29:52 +00:00
tjhunt
75e84883ca
Unbreak roles and permission on Postgres yet again.
...
If you want a laugh, compare this fix the with the diff between revisions 1.5 and 1.6 of this file.
2006-08-22 16:18:11 +00:00
toyomoyo
5cf38a57cd
some quiz capabilities
2006-08-22 09:04:23 +00:00
toyomoyo
d140ad3f7c
fix for bug #6307 , reserved word 'level' changed to 'aggregatelevel' for Oracle. Some parts could be broken by this. please report breakage asap! Thanks
2006-08-21 05:19:16 +00:00
moodler
c06140513d
Fixed up get_user_roles to remove notices
2006-08-19 08:12:45 +00:00
toyomoyo
68c5252623
adding functions and interface for access control - role assignment and role overrides
2006-08-18 08:01:16 +00:00
toyomoyo
0a8a95c91e
some more UI stuff
2006-08-15 08:29:29 +00:00
moodler
10f5c89035
FIxed another ossible notice during upgrade
2006-08-14 13:44:10 +00:00
moodler
9db12da755
Fixed some notices during install
2006-08-14 13:42:34 +00:00
moodler
218564acfc
Fixed bug #6238 , bad debug statements
2006-08-14 08:26:58 +00:00
moodler
e4dd322255
Function to get roles used in a context
2006-08-14 08:14:02 +00:00
vyshane
cee0901c06
Formatting cleanups and comments
2006-08-14 07:15:03 +00:00
moodler
65f4d137a7
Fixed a typo
2006-08-14 06:22:29 +00:00
moodler
0468976c9a
SWEEPING CLEANUP
...
The API was changed slightly so that has_capability now takes the
whole $context object (we almost always have it anyway)
The $kill thing was removed. If you want to assert a capability
then use:
require_capability('capname', $context);
with optional variables to modify the error message
Misc bugs here and there also removed and code tidied
2006-08-14 05:55:40 +00:00
moodler
340ea4e89e
Some wider caching
2006-08-13 15:48:57 +00:00
moodler
e5605780cf
Cache context lookup per page for performance
2006-08-13 13:28:01 +00:00
moodler
8737be587d
More language-related tidyups and a new get_local_override() function
2006-08-13 09:25:45 +00:00
moodler
ceb83c70ba
Changes to string format for capabilities
2006-08-13 09:11:45 +00:00
vyshane
1afecc03f4
Modified to fix installation.
2006-08-11 02:44:02 +00:00
toyomoyo
171948fd4a
bumped up version to add keys, changed some more UI
2006-08-10 08:21:29 +00:00
moodler
41811960a1
Added patch from Tim ( http://moodle.org/mod/forum/discuss.php?d=51323#234978 )
2006-08-09 14:16:13 +00:00
moodler
9888263703
Removed tabs
2006-08-09 13:14:15 +00:00
moodler
aa31141173
Small cleanup of a notification
2006-08-09 05:37:31 +00:00
moodler
ec0810ee2d
Some fixes to make the context more readable for humans
2006-08-09 04:51:05 +00:00
moodler
bbbf2d4015
ROLES AND PERMISSIONS - FIRST CHECK-IN
...
=======================================
WARNING: DEV IS CURRENTLY VERY UNSTABLE.
This is a mega-checkin of the new Roles system. A lot of changes have
been made in core and modules.
Currently there are a lot of rough edges and known problems. We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).
Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.
2006-08-08 05:13:06 +00:00