]> git.mjollnir.org Git - moodle.git/commitdiff
filters: MDL-7336 create new moodle/filter:manage capability
authortjhunt <tjhunt>
Mon, 13 Apr 2009 06:54:11 +0000 (06:54 +0000)
committertjhunt <tjhunt>
Mon, 13 Apr 2009 06:54:11 +0000 (06:54 +0000)
lang/en_utf8/role.php
lib/db/access.php
version.php

index 71e8e6cdc28ba84e926c7a60bcd25b65ebc58751..83ec50a4c6dc22afcb7764ed000164127966cc0a 100644 (file)
@@ -103,6 +103,7 @@ $string['explainpermissionsinfo'] = '<p>To use this table:</p><ol><li>First look
 $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';
index 341c49953742e2ba49573199a59ad6d53d753c3c..292e34c593a599f8ab5ea4d2349d5e8a8ffd4254 100644 (file)
@@ -300,6 +300,17 @@ $moodle_capabilities = array(
         )
     ),
 
+    // 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(
 
index e47190409329819bae47bf239ad4e60f9b0ca5d7..910d18e47a6d01c31f88e7633606b77d565331a0 100644 (file)
@@ -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