From f59208a745e7029841cc34dc5e11cb2cf055bffb Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 21 Sep 2006 16:27:37 +0000 Subject: [PATCH] fixed typos in capabiltiy names --- admin/roles/allowassign.php | 6 +++--- admin/roles/allowoverride.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/admin/roles/allowassign.php b/admin/roles/allowassign.php index c6ab7eda25..b9aec1c38e 100755 --- a/admin/roles/allowassign.php +++ b/admin/roles/allowassign.php @@ -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'); diff --git a/admin/roles/allowoverride.php b/admin/roles/allowoverride.php index afaf800225..6cf229eafc 100755 --- a/admin/roles/allowoverride.php +++ b/admin/roles/allowoverride.php @@ -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'); -- 2.39.5