Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

… roles in enrol plugins
  • Loading branch information...
commit e1ce68c2f9a9ae937f8bbe7aa779a3cbf08cc18d 1 parent 92a387b
@skodak skodak authored
View
8 enrol/authorize/db/access.php
@@ -5,7 +5,7 @@
'enrol/authorize:config' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
)
),
@@ -13,7 +13,7 @@
'enrol/authorize:manage' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
)
@@ -22,7 +22,7 @@
'enrol/authorize:unenrol' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
)
),
@@ -30,7 +30,7 @@
'enrol/authorize:unenrolself' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
)
),
View
2  enrol/category/db/access.php
@@ -33,7 +33,7 @@
'enrol/category:synchronised' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_SYSTEM,
- 'legacy' => array(
+ 'archetypes' => array(
)
),
);
View
2  enrol/cohort/db/access.php
@@ -32,7 +32,7 @@
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW,
)
View
2  enrol/guest/db/access.php
@@ -31,7 +31,7 @@
'enrol/guest:config' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
)
View
2  enrol/ldap/db/access.php
@@ -31,7 +31,7 @@
'enrol/ldap:manage' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
)
),
View
10 enrol/manual/db/access.php
@@ -31,7 +31,7 @@
'enrol/manual:config' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
)
),
@@ -39,7 +39,7 @@
'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
4 enrol/meta/db/access.php
@@ -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,
)
),
View
8 enrol/paypal/db/access.php
@@ -31,7 +31,7 @@
'enrol/paypal:config' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
)
),
@@ -39,7 +39,7 @@
'enrol/paypal:manage' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
)
@@ -48,7 +48,7 @@
'enrol/paypal:unenrol' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'manager' => CAP_ALLOW,
)
),
@@ -56,7 +56,7 @@
'enrol/paypal:unenrolself' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
)
),
View
8 enrol/self/db/access.php
@@ -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,7 +51,7 @@
'enrol/self:unenrolself' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'student' => CAP_ALLOW,
)
),
@@ -59,7 +59,7 @@
'enrol/self:unenrol' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
- 'legacy' => array(
+ 'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW,
)
Please sign in to comment.
Something went wrong with that request. Please try again.