Permalink
Browse files

MDL-26991 use archetypes instead of deprecated 'legacy' when defining…

… roles in enrol plugins
  • Loading branch information...
1 parent 92a387b commit e1ce68c2f9a9ae937f8bbe7aa779a3cbf08cc18d @skodak skodak committed Mar 27, 2011
@@ -5,15 +5,15 @@
'enrol/authorize:config' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
)
),
'enrol/authorize:manage' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
)
@@ -22,15 +22,15 @@
'enrol/authorize:unenrol' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
)
),
'enrol/authorize:unenrolself' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
)
),
@@ -33,7 +33,7 @@
'enrol/category:synchronised' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_SYSTEM,
- 'legacy' => array(
+ 'archetypes' => array(
)
),
);
@@ -32,7 +32,7 @@
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW,
)
@@ -31,7 +31,7 @@
'enrol/guest:config' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
)
View
@@ -31,7 +31,7 @@
'enrol/ldap:manage' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
)
),
View
@@ -31,15 +31,15 @@
'enrol/manual:config' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
)
),
'enrol/manual:enrol' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
)
@@ -48,7 +48,7 @@
'enrol/manual:manage' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
)
@@ -57,7 +57,7 @@
'enrol/manual:unenrol' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
)
@@ -66,7 +66,7 @@
'enrol/manual:unenrolself' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
)
),
View
@@ -30,7 +30,7 @@
'enrol/meta:config' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
)
@@ -40,7 +40,7 @@
'enrol/meta:selectaslinked' => array(
'captype' => 'read',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
)
),
@@ -31,15 +31,15 @@
'enrol/paypal:config' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
)
),
'enrol/paypal:manage' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
)
@@ -48,15 +48,15 @@
'enrol/paypal:unenrol' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
)
),
'enrol/paypal:unenrolself' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
)
),
View
@@ -32,7 +32,7 @@
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW,
)
@@ -42,7 +42,7 @@
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW,
)
@@ -51,15 +51,15 @@
'enrol/self:unenrolself' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'student' => CAP_ALLOW,
)
),
'enrol/self:unenrol' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW,
)

0 comments on commit e1ce68c

Please sign in to comment.