Commit Graph

92 Commits

Author SHA1 Message Date
skodak 5a33217812 MDL-17797 fixed cap definition - thanks Andrea Bicciolo 2009-01-07 19:55:25 +00:00
tjhunt 5d922e47f7 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:51 +00:00
tjhunt da4676a27e 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:30:56 +00:00
tjhunt 79518165b9 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.
2008-12-04 08:49:47 +00:00
skodak b2908c36a7 MDL-17485 roles: fixed use and definition of moodle/user:viewuseractivitiesreport; backported from HEAD 2008-12-01 19:20:16 +00:00
skodak 02d4a0bbd8 MDL-15262 adding xss risks to new course update related caps 2008-10-08 20:06:35 +00:00
skodak 39eccdd11a MDL-15262 fixed major regressions for non-legacy roles with course:update enabled 2008-10-08 20:00:22 +00:00
nicolasconnault 81dc7d8b36 MDL-15262 Added 3 new capabilities without changing defaults, as suggested by Matt. 2008-10-08 13:15:27 +00:00
tjhunt 20d50e975c MDL-15819 - Review the RISK_XXX flags on all quiz and question capabilites. 2008-08-13 07:05:58 +00:00
skodak 3e79b6e37a MDL-11421 context levels fixed in capability definitions, sorting of caps by name, plug-ins may report used core caps, fixed some risks 2008-07-24 21:58:05 +00:00
skodak bc8b3aa84d MDL-8521 new feature - safe overrides, see tracker for details 2008-07-23 16:09:13 +00:00
scyrma 08450fe007 MDL-13728 - No need for tag:changetype after all 2008-02-29 09:32:57 +00:00
scyrma 548a5a4ae3 MDL-13728 - Removing old capabilities and creating a new one for tag type modifications. 2008-02-29 08:43:22 +00:00
skodak 4b4d9ef4fa MDL-11759 group edit cleanup; merged from MOODLE_18_STABLE 2008-01-18 10:08:10 +00:00
skodak 60414b0b11 MDL-12599 , MDL-12598 - fixed capability tests in user and overview reports 2007-12-16 10:53:36 +00:00
toyomoyo 02bd2e0d38 MDL-10294, MDL-10028, changing messaging/bulk messaging system 2007-11-21 07:52:50 +00:00
sam_marshall 3724757d96 MDL-11916 Added managegroupevents capability 2007-10-30 16:18:08 +00:00
skodak 625faf10a3 MDL-11759 missing RISK_XSS in manage groups capability; merged from MOODLE_18_STABLE 2007-10-16 08:43:54 +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
toyomoyo 4b7ae3c4da merged fix for MDL-8885, editting teacher should be able to read all messages in course 2007-03-14 01:37:07 +00:00
skodak 224aa44a8d MDL-7693 fixed participans block on frontpage; notloggedin and authenticated roles overrides to be fixed later in separate bug; merged from MOODLE_18_STABLE 2007-03-05 20:13:16 +00:00
vyshane 2585a68d54 Merged from 1.8. 2007-02-16 08:46:55 +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
martinlanghoff f509ce0657 lib/db/access: Capability for roaming to remote Moodles
Author: Donal McMullan <donal@catalyst.net.nz>
2007-01-04 03:30:37 +00:00
toyomoyo 22ae509e9c merged implementing moodle/user:viewdetails 2006-12-07 06:14:52 +00:00