Skip to content

Commit

Permalink
MDL-34270 blocks: Adding clonepermissionsfrom to the new capability d…
Browse files Browse the repository at this point in the history
…efinitions
  • Loading branch information
mdjnelson committed Nov 5, 2012
1 parent b291b59 commit 70c9c19
Show file tree
Hide file tree
Showing 38 changed files with 228 additions and 76 deletions.
8 changes: 6 additions & 2 deletions blocks/activity_modules/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/my:manageblocks'
),

'block/activity_modules:addinstance' => array(
Expand All @@ -42,6 +44,8 @@
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
);
8 changes: 6 additions & 2 deletions blocks/admin_bookmarks/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/my:manageblocks'
),

'block/admin_bookmarks:addinstance' => array(
Expand All @@ -42,6 +44,8 @@
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
);
8 changes: 6 additions & 2 deletions blocks/blog_menu/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/my:manageblocks'
),

'block/blog_menu:addinstance' => array(
Expand All @@ -42,6 +44,8 @@
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
);
8 changes: 6 additions & 2 deletions blocks/blog_recent/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/my:manageblocks'
),

'block/blog_recent:addinstance' => array(
Expand All @@ -42,6 +44,8 @@
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
);
8 changes: 6 additions & 2 deletions blocks/blog_tags/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/my:manageblocks'
),

'block/blog_tags:addinstance' => array(
Expand All @@ -42,6 +44,8 @@
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
);
8 changes: 6 additions & 2 deletions blocks/calendar_month/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/my:manageblocks'
),

'block/calendar_month:addinstance' => array(
Expand All @@ -42,6 +44,8 @@
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
);
8 changes: 6 additions & 2 deletions blocks/calendar_upcoming/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/my:manageblocks'
),

'block/calendar_upcoming:addinstance' => array(
Expand All @@ -42,6 +44,8 @@
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
);
8 changes: 6 additions & 2 deletions blocks/comments/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/my:manageblocks'
),

'block/comments:addinstance' => array(
Expand All @@ -42,6 +44,8 @@
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
);
8 changes: 6 additions & 2 deletions blocks/community/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/my:manageblocks'
),

'block/community:addinstance' => array(
Expand All @@ -42,6 +44,8 @@
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
);
8 changes: 6 additions & 2 deletions blocks/completionstatus/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/my:manageblocks'
),

'block/completionstatus:addinstance' => array(
Expand All @@ -42,6 +44,8 @@
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
);
8 changes: 6 additions & 2 deletions blocks/course_list/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/my:manageblocks'
),

'block/course_list:addinstance' => array(
Expand All @@ -42,6 +44,8 @@
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
);
8 changes: 6 additions & 2 deletions blocks/course_overview/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/my:manageblocks'
),

'block/course_overview:addinstance' => array(
Expand All @@ -42,6 +44,8 @@
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
);
8 changes: 6 additions & 2 deletions blocks/course_summary/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/my:manageblocks'
),

'block/course_summary:addinstance' => array(
Expand All @@ -42,6 +44,8 @@
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
);
8 changes: 6 additions & 2 deletions blocks/feedback/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/my:manageblocks'
),

'block/feedback:addinstance' => array(
Expand All @@ -42,6 +44,8 @@
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
);
8 changes: 6 additions & 2 deletions blocks/glossary_random/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/my:manageblocks'
),

'block/glossary_random:addinstance' => array(
Expand All @@ -42,6 +44,8 @@
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
);
8 changes: 6 additions & 2 deletions blocks/html/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/my:manageblocks'
),

'block/html:addinstance' => array(
Expand All @@ -42,6 +44,8 @@
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
);
8 changes: 6 additions & 2 deletions blocks/login/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/my:manageblocks'
),

'block/login:addinstance' => array(
Expand All @@ -42,6 +44,8 @@
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
);
8 changes: 6 additions & 2 deletions blocks/mentees/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/my:manageblocks'
),

'block/mentees:addinstance' => array(
Expand All @@ -42,6 +44,8 @@
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
);
8 changes: 6 additions & 2 deletions blocks/messages/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/my:manageblocks'
),

'block/messages:addinstance' => array(
Expand All @@ -42,6 +44,8 @@
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
),

'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
);
Loading

0 comments on commit 70c9c19

Please sign in to comment.