Commit Graph

42 Commits

Author SHA1 Message Date
Martin Langhoff f3f7610c90 cvsimport fixups -- cvshead had strayed from upstream 2007-01-04 13:15:04 +13:00
toyomoyo e4f86bb041 MDL-7861, fixing minor xhtml strict problem 2006-12-18 05:03:36 +00:00
toyomoyo 30c82426e3 merged fixed a bug where admin can't unassign himself from non-admin role in site context 2006-12-04 01:54:24 +00:00
toyomoyo 5613dbca34 giving some indication a role assignment is a hidden one 2006-11-21 06:42:38 +00:00
skodak 89d30d0230 removed JS from admin/course/assign.php MDL-7492 2006-11-20 08:29:50 +00:00
toyomoyo 40a2a15f20 separating the site course context and the site context, could be buggy, please report bugs! 2006-11-15 08:23:27 +00:00
toyomoyo 3997cb4037 Adding hidden role assignment, currently used in course participants page and print_course function.
Please test.
2006-11-15 04:28:18 +00:00
moodler d24c8ceae1 Prevent admins from unassigning themselves MDL-7462 2006-11-12 06:12:15 +00:00
moodler 8c900bc3b0 Merged documentation for Roles from stable MDL-6923 2006-10-31 08:14:36 +00:00
gustav_delius 6ac0909983 Incomplete user record (the one where the username is still 'changeme') should not be included in user listing. See bug 4570. For some reason this script is not using get_users() but is instead constructing its own sql, so the change to get_users() had to be duplicated here. 2006-10-05 22:45:01 +00:00
moodler a971a5985a FIxes for the assign screen, to make it a lot faster and able to cope
better with very large numbers of users   MDL-6766
2006-10-01 08:08:26 +00:00
skodak adbffcb9fe role ui minor cleanup 2006-09-22 21:17:43 +00:00
skodak 305ef971fc role assign and override code fixes + other minor changes 2006-09-22 20:09:47 +00:00
moodler aad2ba95d1 Upgrading table to rename the context->aggregatelevel field which was
really bugging me.   Code should be a little bit more readable now.

Apologies to those with non-core code already using this field.
2006-09-22 06:19:32 +00:00
skodak b5959f3071 partial rewrite of role manage script, improved notice_yesno(), other minor fixes and changes; I will work on assign and overide tomorrow ;-) 2006-09-21 22:34:45 +00:00
skodak eef868d17d major whitespace cleanup - fixed trailng whitespace in new files and admin area 2006-09-20 21:00:45 +00:00
skodak a14049f107 metacourse role assignment fixes 2006-09-19 20:39:55 +00:00
skodak 681729b16e various minor Role UI fixes 2006-09-19 17:34:29 +00:00
moodler f4af29c5a4 Fixed up some bugs and notices when assigning roles in a user context 2006-09-16 12:41:47 +00:00
tjhunt 36075e092d MDL-6041 - Proper fix that eliminates the magic number 99999 when getting lists of studnets. Now, there is no arbitrary upper limit in the datalib functions, and sensible upper limits on pages that display lists of users. However, if you try to get all the site students, then get_students prints a warning in debug mode, telling you that you need to rethink your code.
Also a few more ISNULL()s eliminated.

And a typo role_assignment -> role_assignments.
2006-09-15 14:32:35 +00:00
moodler 4b10f08b88 Rename CONTEXT_USERID --> CONTEXT_USER for consistency 2006-09-15 14:09:16 +00:00
moodler 4934c49719 Cleaning up assign and override interfaces 2006-09-15 06:04:10 +00:00
moodler 8f8ed475f7 Added a new setting called $CFG->defaultuserroleid which defines
the role that ALL users get by default when they log in.
2006-09-14 09:39:23 +00:00
toyomoyo 87e5a0cd9e changed code to use get_role_users function 2006-09-12 07:38:07 +00:00
moodler dbed4286da Cleaned up headers when editing roles for blocks 2006-09-05 09:15:52 +00:00
moodler 02bd14a7ed Tidy-ups 2006-09-03 08:03:02 +00:00
moodler 9250203ff5 Added a better string as per MDL-6379 2006-08-28 07:12:10 +00:00
vyshane d50ccb9932 Fixed notice 2006-08-28 06:14:06 +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 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
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 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 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