Commit Graph

879 Commits

Author SHA1 Message Date
skodak 2c386f82e5 MDL-10383 - deprecated get_groups(), user_group() and ismember() 2007-08-15 20:21:01 +00:00
poltawski 7e874772a3 MDL-10573 - Added a capability for viewing blocks, this allows role-based control of block
display.

Changed context capability check so that CONTEXT_BLOCK capabilities can also come from the
moodle core capability definitions
2007-08-13 10:08:15 +00:00
poltawski be23993798 MDL-10624 Reverting forum part of last commit - it wasn't needed, I wasn't testing
correctly. merged from 18_STABLE
2007-08-06 19:17:36 +00:00
poltawski 87c2d37d82 Fixed typo in previous commit 2007-08-06 18:47:57 +00:00
poltawski 2515adf9ea MDL-9431 & MDL-10624 - we're not removing some tracking records from the
database when we unassign roles - remove forum_subscriptions & user_lastaccess

Merged from MOODLE_18_STABLE
2007-08-06 18:45:35 +00:00
stronk7 6cdd0f9c93 Adding Id tag + copyright notice.
Merged from MOODLE_18_STABLE
2007-08-06 17:55:44 +00:00
toyomoyo c345bb584a MDL-10679, improvement to context_rel table and load_user_capability 2007-08-02 08:28:29 +00:00
toyomoyo 3527464679 when unassign users in course, if user has no more course:view capability left, he should be removed from all groups in course 2007-07-27 05:43:05 +00:00
skodak 89bd8357e9 MDL-10579 capabilities for grade export plugins 2007-07-24 08:51:45 +00:00
mattc-catalyst cd54510d42 lib/accesslib: Performance optimisation
- On postgres query time drops from ~600ms to ~35ms in some
  instances, in other instances performance is around the same
  as old the implementation.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-07-20 04:05:34 +00:00
toyomoyo 60ace1e114 merged fix for MDL-10149, preventing the deletion of the last admin role 2007-07-19 05:19:05 +00:00
toyomoyo 69b0088cd9 merged fix for MDL-10461, timemodied in role assignments not preserved 2007-07-19 03:37:53 +00:00
skodak 454cf87189 MDL-10421 $fields= typo 2007-07-11 17:27:46 +00:00
toyomoyo 52bb13dc9f adding group support for get_role_users 2007-07-09 06:22:56 +00:00
toyomoyo 898d7119f0 round up enrolment to day, truncate the rest MDL-10181 2007-07-04 02:26:36 +00:00
tjhunt d53587d822 MDL-10250 - Extend get_users_by_capability to have a $useviewallgroups parameter. 2007-06-26 16:16:46 +00:00
toyomoyo 2f2d4fb53f adding limits to get_role_users() to enable extracting specific users 2007-06-22 09:03:03 +00:00
tjhunt b5c2f0afff Fix typo spotted by Eclipse. 2007-06-12 13:47:21 +00:00
tjhunt e765b5d377 Improve doc comments on get_context_* funcitions. 2007-06-12 11:11:42 +00:00
jamiesensei 7d8ea28668 MDL-9891 new 'clonepermissionsfrom' key in access.php 2007-05-27 04:53:02 +00:00
toyomoyo ce34ed3a76 fix for MDL-9137, adding support for gradebook plugins for db, cron, events, permission structures etc 2007-05-24 02:16:31 +00:00
jamiesensei cd26d8e047 MDL-9857 "more options in print_context function" 2007-05-22 10:09:22 +00:00
toyomoyo 9492291c82 some changes to events to make grade_added work 2007-05-15 03:19:01 +00:00
sam_marshall 3bb92bbe04 MDL-9382: Added fields and orderby parameters to get_user_capability_course, which allows for greatly improved performance in the case where you want more information about the courses. (However, the function does still basically suck.) 2007-05-14 12:11:47 +00:00
poltawski c3d1fbe943 MDL-9726 - fixed phpdoc comment from MartinD's commit 2007-05-07 08:34:08 +00:00
toyomoyo 6ceebc1f32 merged fix for MDL-9656, blocks parents can be system context 2007-05-07 03:24:22 +00:00
moodler 6eaa3f09ce Merged changes for better performance in cases where there are lots of enrolment plugins MDL-9726 2007-05-07 03:10:22 +00:00
skodak afe413989b MDL-9216 has capabilitiy does not respect doanything if admin userid specified and $USER is not admin; merged from MOODLE_18_STABLE 2007-04-09 11:11:31 +00:00
nfreear 008b2b07ab Fixes bug MDL-9175 "Groups simpletest, fatal errors", also DONOTCOMMIT. 2007-04-03 10:16:51 +00:00
toyomoyo 863fb22dd7 merged fix for MDL-9057, invalid contexts should be ignored 2007-03-27 03:04:15 +00:00
toyomoyo 9251b26fe8 merged fix for MDL-9016, clear context cache after remove_course_contents() 2007-03-23 07:21:27 +00:00
skodak 6bc1e5d577 (MDL-8973) Fix OOP model of new multi auth plugins + some other auth related fixes, fixed change_password, ldap updates, etc.; TODO: fix docs 2007-03-22 12:27:52 +00:00
toyomoyo 0150c561c5 fix for MDL-8966, customizable role names 2007-03-22 08:11:30 +00:00
toyomoyo a7bb9b8ff2 merged fix for MDL-8981, roles assigned at site level may result in a lot of default subscriptions 2007-03-21 06:07:46 +00:00
skodak 3887fe4acd MDL-8840 Loginas cleanup, some more improvements; merged from MOODLE_18_STABLE
+ merging of format_string fixes
2007-03-20 07:42:41 +00:00
toyomoyo c0aa9f0956 merged fixing a warning 2007-03-20 02:57:57 +00:00
skodak c16ec80252 MDL-8840 Loginas cleanup, better course isolation; merged from MOODLE_18_STABLE 2007-03-19 22:25:13 +00:00
skodak f6f66b0338 MDL-8840 Loginas cleanup; merged from MOODLE_18_STABLE
+ merging perflib toys from moodlelib.php
2007-03-19 18:54:58 +00:00
toyomoyo 8cf990bcfe merged fix for MDL-8934, assign role context statements incorrect 2007-03-19 04:49:49 +00:00
skodak de5e137a2e MDL-8841 Switch role cleanup; merged from MOODLE_18_STABLE 2007-03-16 20:21:27 +00:00
skodak 5e992f564b MDL-8867 Add setting to define role that is assigned to creators in new courses
MDL-8868 Set only minimal permissions for creator role

+ improved accesslib to handle changes of context levels in capability definitions

merged from MOODLE_18_STABLE
2007-03-14 21:42:38 +00:00
moodler eef879ecdb Merged patches from MDL-8385 from 1.8 stable 2007-03-07 13:45:41 +00:00
skodak 66a27728a9 fixed unassigning to use standard function in get_legacy_type() 2007-03-07 09:38:21 +00:00
moodler 0616d3e82f Merged fixes for MDL-8785 from 1.8 to head 2007-03-07 04:56:07 +00:00
toyomoyo 3fe54e5195 merged, fixing hidden teacher upgrade 2007-03-07 01:35:47 +00:00
skodak d67de0ca05 MDL-7633 legacy capabilities now have special menu 2007-03-06 22:01:22 +00:00
skodak b357ed13f3 MDL-8522 fixed role reset warnings + only one legacy cap type allowed now in each role 2007-03-06 19:19:19 +00:00
nicolasconnault 6d2d91d6b7 MDL-8771 - Restricted has_capability() sanity checks to DEVELOPER debug mode 2007-03-06 05:36:19 +00:00
skodak efe12f6c22 MDL-8524 general roles cleanup; MDL-8373 authenticated user role now created during upgrade from 1.7.x, xhtml and CSS cleanup in roles GUI; accesslib inline docs cleanup; risk bitmask fixes 2007-03-05 11:27:01 +00:00
moodler dfd1ff7abe Merged undo for MDL-8385 from 18 stable 2007-03-04 05:46:14 +00:00