281 Commits

Author SHA1 Message Date
moodler
dbed4286da Cleaned up headers when editing roles for blocks 2006-09-05 09:15:52 +00:00
skodak
f21def1f11 fixed collisions in merges, sorry 2006-09-03 15:21:46 +00:00
moodler
02bd14a7ed Tidy-ups 2006-09-03 08:03:02 +00:00
skodak
6e4dc10f54 deglobalization of $ADMIN; merged admin/adminlib.php into lib/adminlib.php; fixed includes and some other minor fixes 2006-09-02 13:14:57 +00:00
vyshane
7654b2bb08 Added lang string 2006-08-28 07:30:07 +00:00
moodler
9250203ff5 Added a better string as per MDL-6379 2006-08-28 07:12:10 +00:00
vyshane
e823cd13fa Cleanups 2006-08-28 06:36:36 +00:00
vyshane
620e1e5b27 Fixed notice. 2006-08-28 06:14:58 +00:00
vyshane
d50ccb9932 Fixed notice 2006-08-28 06:14:06 +00:00
toyomoyo
41d7209c7f some (mainly admin realated) capabilities 2006-08-25 08:27:27 +00:00
toyomoyo
ae1e00a089 renamed variable so that it doens't get recycled 2006-08-23 08:11:43 +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
vyshane
021a7467b5 Fixes:
1) has_capability call used in fullname()
2) initialised array $options
3) $context->level has been renamed to $context->aggregatelevel
2006-08-22 05:44:32 +00:00
vyshane
c1a657cc1f Bug fixes:
1) Replaced isteacher call in fullname ($course undefined)
2) Initialised $options array
2006-08-22 05:35:52 +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
toyomoyo
68c5252623 adding functions and interface for access control - role assignment and role overrides 2006-08-18 08:01:16 +00:00
vinkmar
90a73bb361 Admin page cleanup (Google soc 2006) 2006-08-18 07:25:17 +00:00
toyomoyo
b3e900cee6 some more UI change 2006-08-16 09:11:43 +00:00
toyomoyo
0a8a95c91e some more UI stuff 2006-08-15 08:29:29 +00:00
toyomoyo
7e2d7c92ad some UI changes 2006-08-14 08:46:44 +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
7fad699525 Tidying up some spelling 2006-08-13 09:29:33 +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
moodler
bade10e350 Removed all of the "Restricted users" hack because Roles can do it all better. 2006-08-13 07:01:57 +00:00
vyshane
abd896a114 Commented out code that adds the new admin user to user_admins and
user_teachers tables from user.php.

Fixed notices in roles/assign.php.
2006-08-11 03:24:37 +00:00
moodler
5ec8a4f009 Removed tabs 2006-08-09 13:18:33 +00:00
moodler
30725d5a3b Tabs and some random formatting fixes 2006-08-09 13:11:53 +00:00
moodler
927bf46f3c Tidy-ups 2006-08-09 05:37:53 +00:00
toyomoyo
e9871557be some UI change for roles 2006-08-08 08:31:21 +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