MDL-34270 blocks: Adding clonepermissionsfrom to the new capability definitions
authorMark Nelson <markn@moodle.com>
Mon, 5 Nov 2012 04:28:09 +0000 (12:28 +0800)
committerMark Nelson <markn@moodle.com>
Mon, 5 Nov 2012 04:28:09 +0000 (12:28 +0800)
38 files changed:
blocks/activity_modules/db/access.php
blocks/admin_bookmarks/db/access.php
blocks/blog_menu/db/access.php
blocks/blog_recent/db/access.php
blocks/blog_tags/db/access.php
blocks/calendar_month/db/access.php
blocks/calendar_upcoming/db/access.php
blocks/comments/db/access.php
blocks/community/db/access.php
blocks/completionstatus/db/access.php
blocks/course_list/db/access.php
blocks/course_overview/db/access.php
blocks/course_summary/db/access.php
blocks/feedback/db/access.php
blocks/glossary_random/db/access.php
blocks/html/db/access.php
blocks/login/db/access.php
blocks/mentees/db/access.php
blocks/messages/db/access.php
blocks/mnet_hosts/db/access.php
blocks/myprofile/db/access.php
blocks/navigation/db/access.php
blocks/news_items/db/access.php
blocks/online_users/db/access.php
blocks/participants/db/access.php
blocks/private_files/db/access.php
blocks/quiz_results/db/access.php
blocks/recent_activity/db/access.php
blocks/rss_client/db/access.php
blocks/search_forums/db/access.php
blocks/section_links/db/access.php
blocks/selfcompletion/db/access.php
blocks/settings/db/access.php
blocks/site_main_menu/db/access.php
blocks/social_activities/db/access.php
blocks/tag_flickr/db/access.php
blocks/tag_youtube/db/access.php
blocks/tags/db/access.php

index 9041f65..de6bbb8 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/activity_modules:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index 7ff3e92..7c8b418 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/admin_bookmarks:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index 205127e..059aeeb 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/blog_menu:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index bcd56e9..691ef27 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/blog_recent:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index d1cd45b..ba81a71 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/blog_tags:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index 0daa023..71cb0bc 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/calendar_month:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index f323a0b..673cf8b 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/calendar_upcoming:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index b3b10d3..1122993 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/comments:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index 4242ee5..1ec36ed 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/community:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index 91213c3..8220ecc 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/completionstatus:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index 8dfbfa6..5d594fe 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/course_list:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index 15ecf2c..828135c 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/course_overview:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index b34a101..5613ae7 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/course_summary:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index 79829ec..759f6d7 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/feedback:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index f4c9bfe..0c1acd6 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/glossary_random:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index e0e9e07..84c5836 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/html:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index 42776ca..109eedc 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/login:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index cae7a46..ba14b07 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/mentees:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index 9a8e7a1..4ea589d 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/messages:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index 2800a3d..43e2c32 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/mnet_hosts:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index 413ab16..328a6f0 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/myprofile:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index bdc6b8a..6754273 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/navigation:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index 72b1aa6..86bb1b7 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/news_items:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index bcfcfe6..f238b73 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/online_users:addinstance' => array(
@@ -42,7 +44,9 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 
     'block/online_users:viewlist' => array(
index fcf3812..ad8a9f2 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/participants:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index f2d059e..707027f 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/private_files:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index e410cff..ec77308 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/quiz_results:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index 249b35e..331dbba 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/recent_activity:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index 0f9c77b..3789a58 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/rss_client:addinstance' => array(
@@ -42,7 +44,9 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 
     'block/rss_client:manageownfeeds' => array(
index 1034313..bd5c3a6 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/search_forums:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index 3b2288c..5e6a48b 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/section_links:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index ae0b074..489eebd 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/selfcompletion:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index 257f46e..7585857 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/settings:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index 4f5d0fd..aaa71d7 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/site_main_menu:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index e33ec2c..1981d02 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/social_activities:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index bf88cdf..414b070 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/tag_flickr:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index 6000d12..0c1aac4 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/tag_youtube:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );
index 04504a2..7ba3459 100644 (file)
@@ -31,7 +31,9 @@ $capabilities = array(
         'contextlevel' => CONTEXT_SYSTEM,
         'archetypes' => array(
             'user' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/my:manageblocks'
     ),
 
     'block/tags:addinstance' => array(
@@ -42,6 +44,8 @@ $capabilities = array(
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW
-        )
+        ),
+
+        'clonepermissionsfrom' => 'moodle/site:manageblocks'
     ),
 );