From eafc0421e1b0059cdc120d68f48bad6111679321 Mon Sep 17 00:00:00 2001 From: Artem Andreev Date: Sat, 9 Apr 2011 12:55:06 +0400 Subject: [PATCH] Added manager archetype in access.php --- db/access.php | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/db/access.php b/db/access.php index 1ad8056..1e27a6e 100644 --- a/db/access.php +++ b/db/access.php @@ -40,7 +40,8 @@ $capabilities = array( 'archetypes' => array( 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, - 'editingteacher' => CAP_ALLOW + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW ) ), @@ -52,7 +53,8 @@ $capabilities = array( 'contextlevel' => CONTEXT_MODULE, 'archetypes' => array( 'teacher' => CAP_ALLOW, - 'editingteacher' => CAP_ALLOW + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW ) ), @@ -64,7 +66,8 @@ $capabilities = array( 'contextlevel' => CONTEXT_MODULE, 'archetypes' => array( 'teacher' => CAP_ALLOW, - 'editingteacher' => CAP_ALLOW + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW ) ), @@ -76,7 +79,8 @@ $capabilities = array( 'contextlevel' => CONTEXT_MODULE, 'archetypes' => array( 'teacher' => CAP_ALLOW, - 'editingteacher' => CAP_ALLOW + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW ) ), @@ -87,7 +91,8 @@ $capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'archetypes' => array( - 'editingteacher' => CAP_ALLOW + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW ) ), @@ -98,7 +103,8 @@ $capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'archetypes' => array( - 'editingteacher' => CAP_ALLOW + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW ) ), @@ -109,7 +115,8 @@ $capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'archetypes' => array( - 'editingteacher' => CAP_ALLOW + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW ) ),