Commit Graph

162 Commits

Author SHA1 Message Date
Eloy Lafuente f6459d125e MDL-20849 moodle/restore:userinfo - new cababilty to allow/deny
permissions to restore any (users, messages, modulesactivity...)
user-level information. Merged from 19_STABLE
2009-11-20 00:32:16 +00:00
Eloy Lafuente f2a0da6c41 MDL-20834 new cap moodle/backup:userinfo - controls who can backupuser
related info. Disabled by default to teachers, oh my! :-( Merged from 19_STABLE
2009-11-18 19:38:51 +00:00
Petr Skoda 0ac940b3bf MDL-20712 using just $capablities for capability definition array, all other files in db/* do not use component names in definition array; old capability array names are of course supported 2009-11-04 19:24:12 +00:00
Petr Skoda 117bd74897 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 11:31:16 +00:00
Nicolas Connault 05de723b1b MDL-20328 New capabilities for blog 2009-10-30 07:26:11 +00:00
stronk7 982e45af49 MDL-12922 adding 'moodle/restore:rolldates' cap to control who can roll dates on restore
(defaults to current settings: only course creators (and admins) are able to roll) Merged from 19_STABLE
2009-10-06 01:14:47 +00:00
nicolasconnault 50569ba3ac MDL-15262 Added a two capabilities to prevent certain users from changing a course's fullname and shortname. merged from MOODLE_19_STABLE 2009-10-02 07:05:02 +00:00
nicolasconnault cae837087a MDL-19676 Blog improvements 2009-09-04 00:36:43 +00:00
skodak 0a127169fe MDL17980 reverting last commit - other devs agreed, to be explained in tracker 2009-08-03 07:35:41 +00:00
peterbulmer 1b509b3699 MDL17980 mnet improvements
* Allow multiple roles to be allocated by identity provider
* Allow existing enrolment plugins to manage mnet enrolments


Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2009-08-03 03:38:23 +00:00
tjhunt d14edf06ee blocks: MDL-19399 proper permissions checks for editing blocks.
In particular for editing sticky blocks. If the admin addes one at site level,
then the teacher should not be able to change its configuration from
the course page, but should be able to set the position on this page.
2009-07-30 03:44:10 +00:00
dongsheng 1bcb7eb540 "MDL-19118, comments api" 2009-07-24 02:44:44 +00:00
tjhunt 9421125080 filters: MDL-7336 create new moodle/filter:manage capability 2009-04-13 06:54:11 +00:00
jerome d27c5d3383 web service MDL-17135 add moodle/site:usewebservice capability - display only web service users into administration page 2009-02-16 08:06:14 +00:00
skodak bc4c980010 MDL-17797 fixed cap definition - thanks Andrea Bicciolo; merged from MOODLE_19_STABLE 2009-01-07 19:56:30 +00:00
tjhunt e452210a18 course request: MDL-17575 and MDL-6160 further improvements:
1/ email notification when course requested
2/ course request capability so that we can limit who can request new course
3/ list of my pending course requests on the request form

Implemented in 1.9 by Petr Skoda, and reviewed and merged to HEAD by me.
2008-12-10 02:57:41 +00:00
tjhunt 9136a60c46 course settings: MDL-17501 check for moodle/course:visibility in the course settings form.
1. If a user does not have that capability, don't let them change whether the course is visible.
2. Give teachers that capability by default.
3. To avoid regressions, on upgrade, give moodle/course:visibility to any role that has moodle/course:update.
2008-12-08 02:31:05 +00:00
tjhunt 8ed5dd63ee course categories: Fix many bugs with category editing and permissions. Clean up code.
Bugs: MDL-17479, MDL-16426, MDL-16063, MDL-16013, MDL-15658, MDL-15556, MDL-15161, MDL-14925, MDL-13742, MDL-11557.

* Simplify category editing permissions to just moodle/category:manage and moodle/category:seehiddencategories.
* Enforce those correctly. (Note MDL 17502 is still outstanding.)
* Don't screw up category sort order when you just edit name or description.
* Niceties like where redirects go when you cancel or submit forms.
* Make sure a global course creator can see the site admin block.
* Don't allow a category to be made the child of one of its children!
* General code cleanup to bring key files more in line with best pracitice.

Apologies for the fact it is one big patch, rather than a series of smaller patches. However, categoryedit.php, category.php and index.php where in pretty bad shape and needed significant cleaning up. categoryedit.php, in particular, was almost completely rewritten.

Merged from MOODLE_19_STABLE.
2008-12-04 08:53:10 +00:00
skodak 3c7da16d2d MDL-17485 roles: fixed use and definition of review use of moodle/user:viewuseractivitiesreport 2008-12-01 19:19:29 +00:00
skodak 0d13085755 MDL-17463 chnging progress report cap to new standard 2008-11-29 16:41:20 +00:00
skodak cd7f72c0b6 MDL-15262 adding xss risks to new course update related caps; merged from MOODLE_19_STABLE 2008-10-08 20:07:42 +00:00
skodak 5e99b9d70e MDL-15262 fixed major regressions for non-legacy roles with course:update enabled; merged from MOODLE_19_STABLE 2008-10-08 20:03:15 +00:00
nicolasconnault f7c0d84b87 MDL-15262 Added 3 new capabilities without changing defaults, as suggested by Matt. Merged from MOODLE_19_STABLE 2008-10-08 13:23:35 +00:00
tjhunt 62e76c6766 MDL-16263 A way for students to flag/bookmark, particular questions during a quiz attempt for later review.
This is an initial implementation that is now at a working state, but with a few things left to do. It seemed like a good idea to commit it before leaving work on Friday night.
2008-08-29 10:08:27 +00:00
tjhunt 14d701d67e MDL-15819 - Review the RISK_XXX flags on all quiz and question capabilites. 2008-08-13 07:05:42 +00:00
mjollnir_ 8512f577dc MDL-15768 - added general capability for exporting any content to portfolio 2008-08-12 13:31:02 +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
sam_marshall 4e781c7b50 MDL-15498: Completion system 2008-07-28 12:31:29 +00:00
skodak f432bebff2 MDL-11421 context levels fixed in capability definitions, sorting of caps by name, plug-ins may report used core caps, fixed some risks; merged from MOODLE_19_STABLE 2008-07-24 21:59:13 +00:00
moodler 3b120e464f MDL-10107 - First check-in of Messaging 2.0 code from Luis Rodrigues, GSOC student.
This new messaging system replaces all the various email_to_user() calls.
They are now replaced by events triggers, and the messages are then
processed centrally according to user preferences and sent to one or more
processors (email, popup, jabber etc...)

This code is not finished yet, a lot of work still has to be done on the
interface.  However, the basic structure is there and should be working.
Luis and I will be reviewing and polishing this heavily in the next few weeks.
2008-07-24 08:38:03 +00:00
skodak 3a0c6cca33 MDL-8521 new feature - safe overrides, see tracker for details; merged from MOODLE_19_STABLE 2008-07-23 16:10:06 +00:00
scyrma 603443b519 MDL-13728 - Tag form editing now provides a checkbox to set the tag type (official or not), and it's all base on tag:manage. (merge) 2008-02-29 09:35:04 +00:00
scyrma a9a4a1f914 MDL-13728 - Removing old capabilities and creating a new one for tag type modifications. (merge) 2008-02-29 08:47:50 +00:00
skodak 4559ab345f MDL-11759 group edit cleanup; merged from MOODLE_18_STABLE 2008-01-18 10:08:40 +00:00
skodak eecf76df42 MDL-12599 , MDL-12598 - fixed capability tests in user and overview reports; merged from MOODLE_19_STABLE 2007-12-16 10:54:45 +00:00
toyomoyo 576ad29016 MDL-10294, MDL-10028, changing messaging/bulk messaging system 2007-11-21 07:53:42 +00:00
sam_marshall f63d29223e MDL-11916 Added managegroupevents capability 2007-10-30 16:19:47 +00:00
skodak d5c60087a1 MDL-11759 missing RISK_XSS in manage groups capability; merged from MOODLE_18_STABLE 2007-10-16 08:45:01 +00:00
moodler 0371f8e52f Added some default roles that should have moodle/grade:viewhidden
related to MDL-11580
2007-10-04 15:45:37 +00:00
toyomoyo 165088f687 change participants of frontpage course to display all users, if current user has capability MDL-11143 2007-10-02 03:37:30 +00:00
skodak 284abb0925 MDL-11495 grade letter setting improvements:
* in_null for decimals defaults checks
* store letter settings only in database - no cfg settings
* separate configuration page for letters only - pluginselector+admin tree
* new capability to manage grade letters - similar to scales and outcomes
* added grade_letters db index
* grade letters related minor bugfixing
2007-09-28 20:12:43 +00:00
nicolasconnault a5b8be622c MDL-11275 added (submissions). Also fixed :
Issue:
    Teachers can edit grader report preferences (including switches for quickgrading and
    quickfeedback), but do not have access to the "Turn editing on/off" button, so they
    can't do quickgrading.
Solutions:
    1.Decouple the quickgrading and quickfeedback modes from the editing mode,
        and turn them on/off through the preferences page. New capability: moodle/grade:edit
        * preferences: don't show quickgrading if no capability grade:edit
        * If quickgrading is switched off as a preference and user doesn't have manage cap, show edit icons around grades when in editing mode
2007-09-17 17:31:48 +00:00
toyomoyo 3e6e529fa4 MDL-10911, setting tag:create and tag:edit to allow for user role and admin role 2007-08-24 05:39:37 +00:00
poltawski 25a7d98066 MDL-10573 - moodle/block:view wasn't working with switch roles or block_list class 2007-08-22 10:35:28 +00:00
toyomoyo 0f07c40e01 MDL-10911, setting moodle/tag:create to allow as default for the authenticated user role 2007-08-22 03:27:57 +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
luizlaydner 98b5789d43 - added tag:editblocks capability 2007-08-11 03:25:23 +00:00
jamiesensei 271e6decda merging MOODLE_19_QUESTIONS with HEAD 2007-08-09 21:51:09 +00:00
skodak 042596946b tabbed Edit/Outcomes interface, link from course admin block, added manage outcomes capability, other cleanup 2007-07-31 09:10:35 +00:00
moodler 705789bda6 Upgrades to tag tables 2007-07-31 07:34:03 +00:00