Commit Graph

76 Commits

Author SHA1 Message Date
nicolasconnault 414a4a91b1 MDL-19787 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:39:07 +00:00
nicolasconnault 8fbce1c8c8 MDL-19878 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 04:28:40 +00:00
nicolasconnault 73d6f52f6a MDL-19787 Converted all print_footer() calls 2009-08-06 14:12:46 +00:00
tjhunt 5d3b999468 MDL-19690 - more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 10:26:02 +00:00
tjhunt a792ac1d7a define roles: MDL-16966 etc. more UI polishing
* Remove inconistently placed and unnecessary heading, moving help icon.
2008-11-21 06:19:01 +00:00
tjhunt ad5616a934 manage roles: MDL-8313 face lift allow override/assign, and add securtiy checks! 2008-11-18 10:18:00 +00:00
tjhunt a7476c6bbd manage roles: MDL-8313 improve wording. 2008-11-18 07:53:26 +00:00
tjhunt bbdb7070ca manage roles: MDL-8313 Provide a basic mode for the manage roles page.
* New basic define roles mode, with just an Allow checkbox for each capability.
* Button to toggle this form to/from advanced mode.
* Also, a separate mode for viewing a role definition, rather than just showing disabled checkboxes.
* Now duplicating a role just takes to you a pre-populated add role form, so you can double-check things before saving the new role.
* Deleting a role is now logged.
* Role reordering code cleaned up.
* You can now no longer delete the last role that has admin permissions.
* This includes a general refactor of manage.php, which eliminates manage.html, and splits of define.php.
2008-11-18 07:10:00 +00:00
tjhunt 1e8e46879c roles interface: Code reorganisation and adding boilerplate comments.
I have collected code that used to be in lib/adminlib.php, lib/accesslib.php and user/selector/lib.php into a new admin/roles/lib.php file.

And I added standard GPL and Moodle comments to all the files in admin/roles.
2008-11-13 04:07:01 +00:00
tjhunt 01a80f51e5 role assign: MDL-8312 Restrict which roles can be assigned at which contextlevels.
* New table role_context_levels
* Populate table with defaults on install
* Populate table on upgrade with the same defaults, plus any additional ones needed to ensure all the role assignments already in the database are allowed.
* Change get_assignable_roles to respect these settings.
* UI for these settings on the add/edit role form.
* Save these settings when a role definition is saved.
* If in a context, there are no roles you can assign, display a polite message.
* Back up these settings.
* Restore these settings. When resotring a <=1.9.x backup file, any newly imported roles are set to be assignable at all contextlevels.

Restore not tested because it is broken in HEAD.
2008-11-06 07:34:01 +00:00
tjhunt faf75fe715 role overrides: MDL-17070 Improve override roles page to match the recent usability improvements on the assign page.
Including:
MDL-11529 When assigning/overriding roles, the dropdown for switching to another role should have a number in brackets

MDL-16549 Should not be able to edit the permission associated with moodle/site:doanything on any role.
2008-11-05 08:17:30 +00:00
tjhunt 1b63d34db7 MDL-16605 Add an ajaxy search box on the define/override roles screen to help find the capability you want 2008-09-26 06:50:31 +00:00
scyrma 2a68c5d9b9 MDL-16318: remove a few calls use_html_editor() (more to come) 2008-09-03 03:09:56 +00:00
skodak bed7993115 MDL-15897 deprecated PARAM_CLEANFILE - we now support unicode everywhere 2008-07-31 23:03:50 +00:00
skodak 172dd12c63 MDL-14589 initial file storage implementation, temporary file manager, migration of course files; blog conversion MDL-15905; assignment conversion MDL-15904; fromslib related file improvements MDL-15906 2008-07-31 22:15:30 +00:00
skodak 294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +00:00
skodak a5d424df7c MDL-14679 converted some get/set_field() 2008-06-02 21:39:23 +00:00
skodak 9bec527490 MDL-14679 towards /admin/roles conversion 2008-05-31 10:30:30 +00:00
skodak f33e1ed4ae MDL-14679 ok, here is the big patch with new dmllib and ddlib API, some code is already converted, XML db editor works; see tracker for details of regressions and TODOs 2008-05-15 21:40:00 +00:00
dongsheng 6848005374 MDL-14129, creating error string 2008-04-10 06:19:07 +00:00
dongsheng 5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
moodler 714d08d1d7 Merged MDL-13475 from 1.9: treat shortname fields as 100 chars 2008-03-02 15:03:33 +00:00
mjollnir_ d4564cf018 merged from MOODLE_19_STABLE: moving two functions from admin/roles/manage.php (switch_roles and role_cap_duplicate) to accesslib & added phpdoc. Fixes MDL-12621 2007-12-18 20:51:07 +00:00
toyomoyo cb8cb8bf88 MDL-11241, adding logs for roles management 2007-10-18 05:53:14 +00:00
martinlanghoff b3dc845cab admin/roles: sitewide role changes mark site context as dirty
And will force a reload of $USER->access for all logged-in users
on their next request.

We will have to tell admins of large sites to avoid making role changes
at busy times, as it does generate extra load.
2007-09-19 07:10:37 +00:00
skodak 1ae083e424 MDL-9647 simplify dealing with headers/footers in admin sections 2007-04-30 17:08:34 +00:00
skodak 9d200a16d7 MDL-8522 better label for role reset button and confirmation text; merged from MOODLE_18_STABLE 2007-03-14 22:07:59 +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
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
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
moodler 08c7d26024 Merged fixes from 1.8 stable for role menu fixes MDL-8558 2007-02-18 13:01:15 +00:00
toyomoyo e381a324a8 merged adding missing capability check 2007-02-16 02:40:54 +00:00
skodak f4d6704d9a MDL-8380 prevent deleting of roles that are used as default site roles for guest, user, notloggedin, etc... 2007-02-01 23:15:07 +00:00
skodak 0d905d9f34 MDL-7861 new class .icon and .iconsmall 2007-01-08 09:14:05 +00:00
skodak b7dc225654 MDL-8062 1.3 Remove name attribute from <form> and fix focus everywhere - more changes ahead 2007-01-04 21:32:36 +00:00
skodak 3307d3f65f minor xhtml fix 2006-11-30 08:55:49 +00:00
skodak 022f9b28ff bellow spelling fixed 2006-11-20 17:39:35 +00:00
toyomoyo d471721cd7 adding new role duplicate funcitionality MDL-7392 2006-11-09 09:29:19 +00:00
moodler 8c900bc3b0 Merged documentation for Roles from stable MDL-6923 2006-10-31 08:14:36 +00:00
moodler 4505a8b762 Merged new help links from stable 2006-10-29 08:14:30 +00:00
skodak b27b0d5a03 MDL-6985 Role Short name cannot be modified; merged from MOODLE_17_STABLE 2006-10-16 08:34:44 +00:00
toyomoyo 55656968b3 do not write inherit into db! 2006-10-10 09:22:38 +00:00
moodler 4fef9b76d1 Fixed links to Risks documentation 2006-10-01 09:59:03 +00:00
moodler 9e38e94047 More tidy-ups 2006-09-24 14:35:45 +00:00
skodak 38d2d43b01 roles fixed in user browsing page; admin section now accepts array of capabilities for external and settings pages 2006-09-24 11:55:11 +00:00
moodler be91f51dab Make sure buttons don't wrap 2006-09-24 06:54:52 +00:00
moodler 350b5fb6c8 Strip all tags from role names before use 2006-09-23 12:57:48 +00:00
skodak ece4945bd2 role sortorder column now has unique index; new function get_all_roles() that returns all roles with correct sort 2006-09-23 12:51:00 +00:00