229 Commits

Author SHA1 Message Date
skodak
a83addc5e5 MDL-8522 Add role reset button into role definition form; fixed single button css 2007-03-03 22:30:35 +00:00
skodak
3562486b7d MDL-8523 Show default capabilities in role definition; added CSS popup_form spacing 2007-03-03 21:07:07 +00:00
toyomoyo
3c6ffc31f3 adding a progress bar 2007-03-02 08:09:21 +00:00
tjhunt
8388ade865 Make error messages non-ambiguous. Merged from MOODLE_18_STABLE. 2007-03-01 16:42:36 +00:00
moodler
6ba65fa08d Merged Nicolas' changes from MDL-8582 into HEAD. 2007-02-28 06:25:22 +00:00
toyomoyo
118c0f6d5c merged, taking care of context_rel cache when moving courses across categories 2007-02-26 02:35:00 +00:00
skodak
6db71242fd MDL-8268 fixed block get_string, patch by Mark Nielsen 2007-02-14 23:00:20 +00:00
skodak
e2b84345ea MDL-8268 cleanup in get_user_capability_course() 2007-02-14 22:53:17 +00:00
skodak
4fd3348637 MDL-8268 fixed get_user_capability_course(), patch by Mark Nielsen 2007-02-14 22:48:11 +00:00
skodak
2b91b669de MDL-7903 Guests can not enter course that allows guests with key reopened:
* fixed load_guset_role that did not work in course context
* fixed typos in get_child_contexts
* manual guest enrolment changes
2007-02-14 08:03:40 +00:00
vyshane
cdfa3035b7 Merged from 1.7. 2007-02-09 02:24:59 +00:00
skodak
ebce32b5dd (MDL-8367) Add configuration option to select role for guest - guestroleid 2007-02-01 10:24:26 +00:00
moodler
a2b6ee758e Merged switchroles fixes from stable 2007-02-01 08:14:08 +00:00
skodak
c785d40ac3 MDL-8373 Add new predefined role "Authenticated user" for all logged in users 2007-01-31 21:05:32 +00:00
skodak
8ba412dab0 MDL-8352 Fully separate CONTEXT_COURSE, SITEID from COURSE_SYSTEM - now instanceid of system context is always 0 (originally it was SITEID which would cause major trouble is somebody tried to change SITEID) 2007-01-30 10:10:25 +00:00
stronk7
bcf88cbbe2 Applying new rs_xxx() functions everywhere. MDL-8134
Merged from MOODLE_17_STABLE
2007-01-29 22:23:58 +00:00
stronk7
0f5dafffe9 Applying new rs_xxx() functions everywhere. MDL-8134
Merged from MOODLE_17_STABLE
2007-01-29 11:24:18 +00:00
skodak
8d2b18a886 MDL-8337 has_capability() ignores default roles for $userid and does not detect changed $USER and other minor fixes (this is needed for global $COURSE cleanup and fixed+improved cron.php) 2007-01-28 20:52:57 +00:00
moodler
8e82745aed A little bit of caching for get_my_courses, related to MDL-8149
Resetting it in load_all_capabilities() means it gets flushed everytime
role_assign() or role_unassign() is called on the current user, which should
be enough.

The cache is not reset when others assign/unassign roles, but Moodle has
always had this problem.
2007-01-22 03:24:27 +00:00
stronk7
55526eee2d Some changes to GROUP BY clause to be cross-db (all non aggregate fields
in SELECT must be in GROUP BY). Review the logic! MDL-8160
2007-01-12 12:57:50 +00:00
toyomoyo
0db6adc9b0 MDL-8120, changes to roles to facilitate faster log in time 2007-01-12 07:41:33 +00:00
toyomoyo
4cd126780c old method is faster 2007-01-12 00:47:12 +00:00
toyomoyo
0de75c4cfc MDL-8138, adding another flag to hopefully speed up the loop 2007-01-11 06:41:38 +00:00
toyomoyo
1cd03601a3 adding caching to get_parent_contexts 2007-01-11 06:06:11 +00:00
toyomoyo
b7e4027142 fix for MDL-8120, fix for slow override SQL. Please test 2007-01-11 05:52:26 +00:00
Martin Langhoff
f3f7610c90 cvsimport fixups -- cvshead had strayed from upstream 2007-01-04 13:15:04 +13:00
sam_marshall
dc268b2f24 MDL-7904: Trivial change to load_capability_def (so it works if run multiple times for the same file during one PHP run) 2006-12-12 17:23:31 +00:00
sam_marshall
ae628043a0 MDL-7401 Course format database/backup/lang/stylesheet/capability support 2006-12-11 15:47:23 +00:00
moodler
99ad7633a6 Merged cache clearing from stable 2006-12-05 07:17:04 +00:00
moodler
caac897791 Merged fixes for switchroles from stable MDL-7605 2006-12-05 05:45:08 +00:00
tjhunt
115faa2f7b Fix column names. 2006-11-20 17:47:30 +00:00
skodak
69aaada0f5 fixed problem with apostrophe in role names and description when creating roles during install and restore MDL-7611 2006-11-20 14:08:40 +00:00
toyomoyo
d55114512d removed code to ignore site level course teacher assignemnts, since the contexts are separated now 2006-11-20 03:55:35 +00:00
toyomoyo
d42c64ba14 fix for MDL-7595, adding coursemanager config variable to determine what roles are displayed on course description page 2006-11-17 08:57:50 +00:00
toyomoyo
b06334e833 making hidden assignment work with multiple roles 2006-11-16 08:29:25 +00:00
toyomoyo
ae9761ec77 merged, fixed a problem when a user has not visited a course, he is not shown. Changed get_user_roles to take in additional parameter 2006-11-16 05:17:43 +00:00
sam_marshall
40d8670956 MDL-7513 Further tweak to the way defaultuser role works to unbreak one possible situation that my previous change just broke 2006-11-15 14:23:43 +00:00
sam_marshall
39dee8f200 MDL-7513 - made it so a hack for Guest role only applies to that role and doesn't remove the course:view capability from other roles at site level when specifically assigned 2006-11-15 13:36:57 +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
skodak
1936c10e54 fixed obsoleted use of course->category to find site course - now used SITEID instead MDL-1899 2006-11-12 08:55:13 +00:00
toyomoyo
d963740dcd merged, fixing wrong comment 2006-11-07 03:14:46 +00:00
toyomoyo
2d95f70258 merged, fixing capabilities of block context 2006-11-06 06:16:00 +00:00
moodler
71483894b2 Petr's patch for MDL-7327 to modify require_capability login a bit (merged from stable) 2006-11-02 08:12:54 +00:00
skodak
b4a1805ab0 fixed group related typo in has_capability(); merged from MOODLE_17_STABLE 2006-10-31 20:24:57 +00:00
moodler
459e27f3a0 Killed infinite loop when upgrading teachers! (merge from stable) 2006-10-31 04:38:39 +00:00
toyomoyo
0d6f531d8f merged fixing progress count 2006-10-30 05:40:46 +00:00
toyomoyo
b6d9f011e2 merged, ignore site level course teacher assignments when upgrading from 1.6 or below 2006-10-30 05:26:59 +00:00
moodler
6605128ef8 Merged fixes for not-logged-in users from stable 2006-10-29 15:58:21 +00:00
stronk7
0163b1d098 Adding one unmerged change from 17_STABLE. Was breaking some things... 2006-10-28 16:50:28 +00:00