]> git.mjollnir.org Git - moodle.git/commitdiff
fixed typos in capabiltiy names
authorskodak <skodak>
Thu, 21 Sep 2006 16:27:37 +0000 (16:27 +0000)
committerskodak <skodak>
Thu, 21 Sep 2006 16:27:37 +0000 (16:27 +0000)
admin/roles/allowassign.php
admin/roles/allowoverride.php

index c6ab7eda25803cf0d937835d724d888e435c4198..b9aec1c38eb10d6afde0d8031439b2f4cf294c81 100755 (executable)
@@ -3,8 +3,8 @@
  * this page defines what roles can access (grant user that role and override that roles'
  * capabilities in different context. For example, we can say that Teachers can only grant
  * student role or modify student role's capabilities. Note that you need both the right
- * capability moodle/roles:assign or moodle/roles:manage and this database table roles_deny_grant
- * to be able to grant roles. If a user has moodle/roles:manage at site level assignment
+ * capability moodle/role:assign or moodle/role:manage and this database table roles_deny_grant
+ * to be able to grant roles. If a user has moodle/role:manage at site level assignment
  * then he can modify the roles_allow_assign table via this interface.
  */
     require_once('../../config.php');
@@ -16,7 +16,7 @@
 
 
     $sitecontext = get_context_instance(CONTEXT_SYSTEM, SITEID);
-    require_capability('moodle/roles:manage', $sitecontext);
+    require_capability('moodle/role:manage', $sitecontext);
 
     $site = get_site();
     $strmanageroles = get_string('manageroles');
index afaf8002256205ddd0012f3426002dd7e5db93ed..6cf229eafc236ac099bc242f8601e889993af54c 100755 (executable)
@@ -2,7 +2,7 @@
 /**
  * this page defines what roles can override (override roles in different context. For example,
  * we can say that Admin can override teacher roles in a course
- * To be able to override roles. If a user has moodle/roles:overrde at context level
+ * To be able to override roles. If a user has moodle/role:override at context level
  * and be in the roles_allow_override table.
  */
     require_once('../../config.php');
@@ -14,7 +14,7 @@
 
 
     $sitecontext = get_context_instance(CONTEXT_SYSTEM, SITEID);
-    require_capability('moodle/roles:manage', $sitecontext);
+    require_capability('moodle/role:manage', $sitecontext);
 
     $site = get_site();
     $strmanageroles = get_string('manageroles');