Commit graph

98 commits

Author SHA1 Message Date
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
moodler
7964206412 Added tables for new tags 2007-07-31 05:59:32 +00:00
skodak
2a55410b18 MDL-10576 two new lang pack editing capabilities 2007-07-23 19:50:20 +00:00
skodak
dd45888a24 MDL-9511 adding/renaming grading capabilities 2007-07-23 19:22:48 +00:00
toyomoyo
eca3af25cb MDL-7077, MDL-10181, adding notes for students 2007-07-05 06:53:17 +00:00
skodak
89a792abac MDL-10057 XSS risk flag for Add/update course category 2007-06-10 19:35:05 +00:00
jmg324
282c169549 MDL-9802 added my:manageblocks capability so admins can define whether users can add/remove blocks from myMoodle page 2007-05-18 11:57:46 +00:00
poltawski
a044c05ddb MDL-9742 - changed tabs to spaces in a few places where there are one
or two
2007-05-08 15:07:25 +00:00
toyomoyo
ca9ffa1887 adding capabilities for gradebook, MDL-9511 2007-05-02 06:30:54 +00:00
tjhunt
0eb6b04a73 New capability for configuring question types. 2007-04-27 10:37:39 +00:00
skodak
1cb3da3613 MDL-9574 + MDL-9607 Add Change-own-password and Edit-own-profile capabilities 2007-04-26 21:41:08 +00:00
toyomoyo
72cf2e3908 admins should not need course:view 2007-04-02 02:37:34 +00:00
toyomoyo
8305aeaaa8 putting user/editprofile back 2007-03-15 08:30:36 +00:00
toyomoyo
2f5ab42bc0 merged fix for MDL-7939, teachers, editting-teachers and course creators should see hidden courses 2007-03-15 04:23:21 +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