]> git.mjollnir.org Git - moodle.git/commitdiff
roles interface: MDL-16965 make a view that explains the has_capability calculation...
authortjhunt <tjhunt>
Tue, 28 Oct 2008 06:49:58 +0000 (06:49 +0000)
committertjhunt <tjhunt>
Tue, 28 Oct 2008 06:49:58 +0000 (06:49 +0000)
lang/en_utf8/role.php

index 930ab1f4a35f54d76e55a54944852e86d52f8e95..a63609ca5f6ec30c5dca4a2ba3bf7eca9be745f0 100644 (file)
@@ -10,6 +10,7 @@ $string['allsiteusers'] = 'All site users';
 $string['assignroles'] = 'Assign roles';
 $string['assignrolesin'] = 'Assign roles in $a';
 $string['assignglobalroles'] = 'Assign system roles';
+$string['assignmentcontext'] = 'Assignment context';
 $string['blog:create'] = 'Create new blog entries';
 $string['blog:manageentries'] = 'Edit and manage entries';
 $string['blog:manageofficialtags'] = 'Manage official tags';
@@ -79,6 +80,10 @@ $string['errorbadroleshortname'] = 'Incorrect role name';
 $string['errorexistsrolename'] = 'Role name already exists';
 $string['errorexistsroleshortname'] = 'Role name already exists';
 $string['existingusers'] = '$a existing users';
+$string['explainpermissions'] = 'Explain permissions';
+$string['explainpermissionsdetails'] = 'For capability $a->capability in context $a->context when logged in as $a->fullname.';
+$string['explainpermissionsinfo'] = '<p>To use this table:</p><ol><li>First look to see if there are any Prohibits. If there are, has_capability will return false.</li><li>Otherwise, read across the rows, left-to-right, top-to-bottom, and find the first cell where the number of Prevents and Allows are different. If there are more Allows than Prevents in that cell, then has_capability will return true, otherwise it will return false.</li><li>If no cell has different numbers of Prevents and Allows, then has_capability will return false.</li></ol>';
+$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['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['inherit'] = 'Inherit';
@@ -102,6 +107,7 @@ $string['morethan'] = 'More than $a';
 $string['my:manageblocks'] = 'Manage myMoodle page blocks';
 $string['nocapabilitiesincontext'] = 'No capabilities available in this context';
 $string['notset'] = 'Not set';
+$string['overridecontext'] = 'Override context';
 $string['overrideroles'] = 'Override roles';
 $string['overriderolesin'] = 'Override roles in $a';
 $string['overrides'] = 'Overrides';