Skip to content

Commit

Permalink
filters: MDL-7336 create new moodle/filter:manage capability
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhunt committed Apr 13, 2009
1 parent 1bd09db commit 9421125
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions lang/en_utf8/role.php
Expand Up @@ -103,6 +103,7 @@
$string['explainpermissionsdoanything'] = 'Note that this user has the moodle/site:doanything capability, so even though the table above shows that has_capability will return false, this user will actually be deemed to have the capability $a in most circumstances.';
$string['extusers'] = 'Existing users';
$string['extusersmatching'] = 'Existing users matching \'$a\'';
$string['filter:manage'] = 'Manage local filter settings';
$string['globalrole'] = 'System role';
$string['globalroleswarning'] = 'WARNING! Any roles you assign from this page will apply to the assigned users throughout the entire system, including the front page and all the courses.';
$string['gotoassignroles'] = 'Go to Assign roles for this $a->contextlevel';
Expand Down
11 changes: 11 additions & 0 deletions lib/db/access.php
Expand Up @@ -300,6 +300,17 @@
)
),

// Permission to manage filter setting overrides in subcontexts.
'moodle/filter:manage' => array(

'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
'legacy' => array(
'editingteacher' => CAP_ALLOW,
'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW,
)
),

'moodle/user:create' => array(

Expand Down
2 changes: 1 addition & 1 deletion version.php
Expand Up @@ -6,7 +6,7 @@
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)

$version = 2009040302; // YYYYMMDD = date of the last version bump
$version = 2009040303; // YYYYMMDD = date of the last version bump
// XX = daily increments

$release = '2.0 dev (Build: 20090413)'; // Human-friendly version name
Expand Down

0 comments on commit 9421125

Please sign in to comment.