Permalink
Browse files

MDL-34270 blocks: removing unnecessary capabilities

  • Loading branch information...
1 parent 464e00b commit 4fc95a9fff6b6ea371bc1162d0db122daf6f558d @markn86 markn86 committed Nov 8, 2012
Showing with 15 additions and 180 deletions.
  1. +0 −10 blocks/activity_modules/db/access.php
  2. +0 −1 blocks/activity_modules/lang/en/block_activity_modules.php
  3. +1 −1 blocks/activity_modules/version.php
  4. +0 −10 blocks/blog_menu/db/access.php
  5. +0 −1 blocks/blog_menu/lang/en/block_blog_menu.php
  6. +1 −1 blocks/blog_menu/version.php
  7. +0 −10 blocks/blog_recent/db/access.php
  8. +0 −1 blocks/blog_recent/lang/en/block_blog_recent.php
  9. +1 −1 blocks/blog_recent/version.php
  10. +0 −10 blocks/blog_tags/db/access.php
  11. +0 −1 blocks/blog_tags/lang/en/block_blog_tags.php
  12. +1 −1 blocks/blog_tags/version.php
  13. +0 −10 blocks/feedback/db/access.php
  14. +0 −1 blocks/feedback/lang/en/block_feedback.php
  15. +1 −1 blocks/feedback/version.php
  16. +0 −10 blocks/login/db/access.php
  17. +0 −1 blocks/login/lang/en/block_login.php
  18. +1 −1 blocks/login/version.php
  19. +0 −10 blocks/participants/db/access.php
  20. +0 −1 blocks/participants/lang/en/block_participants.php
  21. +1 −1 blocks/participants/version.php
  22. +0 −10 blocks/quiz_results/db/access.php
  23. +0 −1 blocks/quiz_results/lang/en/block_quiz_results.php
  24. +1 −1 blocks/quiz_results/version.php
  25. +0 −10 blocks/recent_activity/db/access.php
  26. +0 −1 blocks/recent_activity/lang/en/block_recent_activity.php
  27. +1 −1 blocks/recent_activity/version.php
  28. +0 −10 blocks/search_forums/db/access.php
  29. +0 −1 blocks/search_forums/lang/en/block_search_forums.php
  30. +1 −1 blocks/search_forums/version.php
  31. +0 −10 blocks/section_links/db/access.php
  32. +0 −1 blocks/section_links/lang/en/block_section_links.php
  33. +1 −1 blocks/section_links/version.php
  34. +0 −10 blocks/site_main_menu/db/access.php
  35. +0 −1 blocks/site_main_menu/lang/en/block_site_main_menu.php
  36. +1 −1 blocks/site_main_menu/version.php
  37. +0 −10 blocks/social_activities/db/access.php
  38. +0 −1 blocks/social_activities/lang/en/block_social_activities.php
  39. +1 −1 blocks/social_activities/version.php
  40. +0 −10 blocks/tag_flickr/db/access.php
  41. +0 −1 blocks/tag_flickr/lang/en/block_tag_flickr.php
  42. +1 −1 blocks/tag_flickr/version.php
  43. +0 −10 blocks/tag_youtube/db/access.php
  44. +0 −1 blocks/tag_youtube/lang/en/block_tag_youtube.php
  45. +1 −1 blocks/tag_youtube/version.php
View
10 blocks/activity_modules/db/access.php
@@ -26,16 +26,6 @@
$capabilities = array(
- 'block/activity_modules:myaddinstance' => array(
- 'captype' => 'write',
- 'contextlevel' => CONTEXT_SYSTEM,
- 'archetypes' => array(
- 'user' => CAP_ALLOW
- ),
-
- 'clonepermissionsfrom' => 'moodle/my:manageblocks'
- ),
-
'block/activity_modules:addinstance' => array(
'riskbitmask' => RISK_SPAM | RISK_XSS,
View
1 blocks/activity_modules/lang/en/block_activity_modules.php
@@ -24,5 +24,4 @@
*/
$string['activity_modules:addinstance'] = 'Add a new activities block';
-$string['activity_modules:myaddinstance'] = 'Add a new activities block to the My Moodle page';
$string['pluginname'] = 'Activities';
View
2 blocks/activity_modules/version.php
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2012091600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->version = 2012110800; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2012061700; // Requires this Moodle version
$plugin->component = 'block_activity_modules'; // Full name of the plugin (used for diagnostics)
View
10 blocks/blog_menu/db/access.php
@@ -26,16 +26,6 @@
$capabilities = array(
- 'block/blog_menu:myaddinstance' => array(
- 'captype' => 'write',
- 'contextlevel' => CONTEXT_SYSTEM,
- 'archetypes' => array(
- 'user' => CAP_ALLOW
- ),
-
- 'clonepermissionsfrom' => 'moodle/my:manageblocks'
- ),
-
'block/blog_menu:addinstance' => array(
'riskbitmask' => RISK_SPAM | RISK_XSS,
View
1 blocks/blog_menu/lang/en/block_blog_menu.php
@@ -24,5 +24,4 @@
*/
$string['blog_menu:addinstance'] = 'Add a new blog menu block';
-$string['blog_menu:myaddinstance'] = 'Add a new blog menu block to the My Moodle page';
$string['pluginname'] = 'Blog menu';
View
2 blocks/blog_menu/version.php
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2012091600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->version = 2012110800; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2012061700; // Requires this Moodle version
$plugin->component = 'block_blog_menu'; // Full name of the plugin (used for diagnostics)
View
10 blocks/blog_recent/db/access.php
@@ -26,16 +26,6 @@
$capabilities = array(
- 'block/blog_recent:myaddinstance' => array(
- 'captype' => 'write',
- 'contextlevel' => CONTEXT_SYSTEM,
- 'archetypes' => array(
- 'user' => CAP_ALLOW
- ),
-
- 'clonepermissionsfrom' => 'moodle/my:manageblocks'
- ),
-
'block/blog_recent:addinstance' => array(
'riskbitmask' => RISK_SPAM | RISK_XSS,
View
1 blocks/blog_recent/lang/en/block_blog_recent.php
@@ -24,7 +24,6 @@
*/
$string['blog_recent:addinstance'] = 'Add a new recent blog entries block';
-$string['blog_recent:myaddinstance'] = 'Add a new recent blog entries block to the My Moodle page';
$string['norecentblogentries'] = 'No recent entries';
$string['numentriestodisplay'] = 'Number of recent entries to display';
$string['pluginname'] = 'Recent blog entries';
View
2 blocks/blog_recent/version.php
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2012091600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->version = 2012110800; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2012061700; // Requires this Moodle version
$plugin->component = 'block_blog_recent'; // Full name of the plugin (used for diagnostics)
View
10 blocks/blog_tags/db/access.php
@@ -26,16 +26,6 @@
$capabilities = array(
- 'block/blog_tags:myaddinstance' => array(
- 'captype' => 'write',
- 'contextlevel' => CONTEXT_SYSTEM,
- 'archetypes' => array(
- 'user' => CAP_ALLOW
- ),
-
- 'clonepermissionsfrom' => 'moodle/my:manageblocks'
- ),
-
'block/blog_tags:addinstance' => array(
'riskbitmask' => RISK_SPAM | RISK_XSS,
View
1 blocks/blog_tags/lang/en/block_blog_tags.php
@@ -24,5 +24,4 @@
*/
$string['blog_tags:addinstance'] = 'Add a new blog tags block';
-$string['blog_tags:myaddinstance'] = 'Add a new blog tags block to the My Moodle page';
$string['pluginname'] = 'Blog tags';
View
2 blocks/blog_tags/version.php
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2012091600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->version = 2012110800; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2012061700; // Requires this Moodle version
$plugin->component = 'block_blog_tags'; // Full name of the plugin (used for diagnostics)
View
10 blocks/feedback/db/access.php
@@ -26,16 +26,6 @@
$capabilities = array(
- 'block/feedback:myaddinstance' => array(
- 'captype' => 'write',
- 'contextlevel' => CONTEXT_SYSTEM,
- 'archetypes' => array(
- 'user' => CAP_ALLOW
- ),
-
- 'clonepermissionsfrom' => 'moodle/my:manageblocks'
- ),
-
'block/feedback:addinstance' => array(
'riskbitmask' => RISK_SPAM | RISK_XSS,
View
1 blocks/feedback/lang/en/block_feedback.php
@@ -25,6 +25,5 @@
$string['feedback'] = 'Feedback';
$string['feedback:addinstance'] = 'Add a new feedback block';
-$string['feedback:myaddinstance'] = 'Add a new feedback block to the My Moodle page';
$string['missing_feedback_module'] = 'This blocks relies on the Feedback activity module, but that module is not present!';
$string['pluginname'] = 'Feedback';
View
2 blocks/feedback/version.php
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2012091600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->version = 2012110800; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2012061700; // Requires this Moodle version
$plugin->component = 'block_feedback'; // Full name of the plugin (used for diagnostics)
View
10 blocks/login/db/access.php
@@ -26,16 +26,6 @@
$capabilities = array(
- 'block/login:myaddinstance' => array(
- 'captype' => 'write',
- 'contextlevel' => CONTEXT_SYSTEM,
- 'archetypes' => array(
- 'user' => CAP_ALLOW
- ),
-
- 'clonepermissionsfrom' => 'moodle/my:manageblocks'
- ),
-
'block/login:addinstance' => array(
'riskbitmask' => RISK_SPAM | RISK_XSS,
View
1 blocks/login/lang/en/block_login.php
@@ -24,5 +24,4 @@
*/
$string['login:addinstance'] = 'Add a new login block';
-$string['login:myaddinstance'] = 'Add a new login block to the My Moodle page';
$string['pluginname'] = 'Login';
View
2 blocks/login/version.php
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2012091600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->version = 2012110800; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2012061700; // Requires this Moodle version
$plugin->component = 'block_login'; // Full name of the plugin (used for diagnostics)
View
10 blocks/participants/db/access.php
@@ -26,16 +26,6 @@
$capabilities = array(
- 'block/participants:myaddinstance' => array(
- 'captype' => 'write',
- 'contextlevel' => CONTEXT_SYSTEM,
- 'archetypes' => array(
- 'user' => CAP_ALLOW
- ),
-
- 'clonepermissionsfrom' => 'moodle/my:manageblocks'
- ),
-
'block/participants:addinstance' => array(
'riskbitmask' => RISK_SPAM | RISK_XSS,
View
1 blocks/participants/lang/en/block_participants.php
@@ -24,5 +24,4 @@
*/
$string['participants:addinstance'] = 'Add a new people block';
-$string['participants:myaddinstance'] = 'Add a new people block to the My Moodle page';
$string['pluginname'] = 'People';
View
2 blocks/participants/version.php
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2012091600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->version = 2012110800; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2012061700; // Requires this Moodle version
$plugin->component = 'block_participants'; // Full name of the plugin (used for diagnostics)
View
10 blocks/quiz_results/db/access.php
@@ -26,16 +26,6 @@
$capabilities = array(
- 'block/quiz_results:myaddinstance' => array(
- 'captype' => 'write',
- 'contextlevel' => CONTEXT_SYSTEM,
- 'archetypes' => array(
- 'user' => CAP_ALLOW
- ),
-
- 'clonepermissionsfrom' => 'moodle/my:manageblocks'
- ),
-
'block/quiz_results:addinstance' => array(
'riskbitmask' => RISK_SPAM | RISK_XSS,
View
1 blocks/quiz_results/lang/en/block_quiz_results.php
@@ -47,7 +47,6 @@
$string['error_nogroupsexist'] = 'There is an error right now with this block: it is set to display grades in group mode, but the course has no defined groups.';
$string['pluginname'] = 'Quiz results';
$string['quiz_results:addinstance'] = 'Add a new quiz results block';
-$string['quiz_results:myaddinstance'] = 'Add a new quiz results block to the My Moodle page';
$string['worstgrade'] = 'The lowest grade:';
$string['worstgrades'] = 'The {$a} lowest grades:';
$string['worstgroupgrade'] = 'The group with the lowest average:';
View
2 blocks/quiz_results/version.php
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2012091600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->version = 2012110800; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2012061700; // Requires this Moodle version
$plugin->component = 'block_quiz_results'; // Full name of the plugin (used for diagnostics)
View
10 blocks/recent_activity/db/access.php
@@ -26,16 +26,6 @@
$capabilities = array(
- 'block/recent_activity:myaddinstance' => array(
- 'captype' => 'write',
- 'contextlevel' => CONTEXT_SYSTEM,
- 'archetypes' => array(
- 'user' => CAP_ALLOW
- ),
-
- 'clonepermissionsfrom' => 'moodle/my:manageblocks'
- ),
-
'block/recent_activity:addinstance' => array(
'riskbitmask' => RISK_SPAM | RISK_XSS,
View
1 blocks/recent_activity/lang/en/block_recent_activity.php
@@ -25,4 +25,3 @@
$string['pluginname'] = 'Recent activity';
$string['recent_activity:addinstance'] = 'Add a new recent activity block';
-$string['recent_activity:myaddinstance'] = 'Add a new recent activity block to the My Moodle page';
View
2 blocks/recent_activity/version.php
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2012091600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->version = 2012110800; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2012061700; // Requires this Moodle version
$plugin->component = 'block_recent_activity'; // Full name of the plugin (used for diagnostics)
View
10 blocks/search_forums/db/access.php
@@ -26,16 +26,6 @@
$capabilities = array(
- 'block/search_forums:myaddinstance' => array(
- 'captype' => 'write',
- 'contextlevel' => CONTEXT_SYSTEM,
- 'archetypes' => array(
- 'user' => CAP_ALLOW
- ),
-
- 'clonepermissionsfrom' => 'moodle/my:manageblocks'
- ),
-
'block/search_forums:addinstance' => array(
'riskbitmask' => RISK_SPAM | RISK_XSS,
View
1 blocks/search_forums/lang/en/block_search_forums.php
@@ -26,4 +26,3 @@
$string['advancedsearch'] = 'Advanced search';
$string['pluginname'] = 'Search forums';
$string['search_forums:addinstance'] = 'Add a new search forums block';
-$string['search_forums:myaddinstance'] = 'Add a new search forums block for the My Moodle page';
View
2 blocks/search_forums/version.php
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2012091600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->version = 2012110800; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2012061700; // Requires this Moodle version
$plugin->component = 'block_search_forums'; // Full name of the plugin (used for diagnostics)
View
10 blocks/section_links/db/access.php
@@ -26,16 +26,6 @@
$capabilities = array(
- 'block/section_links:myaddinstance' => array(
- 'captype' => 'write',
- 'contextlevel' => CONTEXT_SYSTEM,
- 'archetypes' => array(
- 'user' => CAP_ALLOW
- ),
-
- 'clonepermissionsfrom' => 'moodle/my:manageblocks'
- ),
-
'block/section_links:addinstance' => array(
'riskbitmask' => RISK_SPAM | RISK_XSS,
View
1 blocks/section_links/lang/en/block_section_links.php
@@ -35,6 +35,5 @@
$string['numsections2'] = 'Alternative number of sections';
$string['pluginname'] = 'Section links';
$string['section_links:addinstance'] = 'Add a new section links block';
-$string['section_links:myaddinstance'] = 'Add a new section links block to the My Moodle page';
$string['topics'] = 'Topics';
$string['weeks'] = 'Weeks';
View
2 blocks/section_links/version.php
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2012091600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->version = 2012110800; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2012061700; // Requires this Moodle version
$plugin->component = 'block_section_links'; // Full name of the plugin (used for diagnostics)
View
10 blocks/site_main_menu/db/access.php
@@ -26,16 +26,6 @@
$capabilities = array(
- 'block/site_main_menu:myaddinstance' => array(
- 'captype' => 'write',
- 'contextlevel' => CONTEXT_SYSTEM,
- 'archetypes' => array(
- 'user' => CAP_ALLOW
- ),
-
- 'clonepermissionsfrom' => 'moodle/my:manageblocks'
- ),
-
'block/site_main_menu:addinstance' => array(
'riskbitmask' => RISK_SPAM | RISK_XSS,
View
1 blocks/site_main_menu/lang/en/block_site_main_menu.php
@@ -25,4 +25,3 @@
$string['pluginname'] = 'Main menu';
$string['site_main_menu:addinstance'] = 'Add a new main menu block';
-$string['site_main_menu:myaddinstance'] = 'Add a new main menu block to the My Moodle page';
View
2 blocks/site_main_menu/version.php
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2012091600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->version = 2012110800; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2012061700; // Requires this Moodle version
$plugin->component = 'block_site_main_menu'; // Full name of the plugin (used for diagnostics)
View
10 blocks/social_activities/db/access.php
@@ -26,16 +26,6 @@
$capabilities = array(
- 'block/social_activities:myaddinstance' => array(
- 'captype' => 'write',
- 'contextlevel' => CONTEXT_SYSTEM,
- 'archetypes' => array(
- 'user' => CAP_ALLOW
- ),
-
- 'clonepermissionsfrom' => 'moodle/my:manageblocks'
- ),
-
'block/social_activities:addinstance' => array(
'riskbitmask' => RISK_SPAM | RISK_XSS,
View
1 blocks/social_activities/lang/en/block_social_activities.php
@@ -25,4 +25,3 @@
$string['pluginname'] = 'Social activities';
$string['social_activities:addinstance'] = 'Add a new social activities block';
-$string['social_activities:myaddinstance'] = 'Add a new social activities block to the My Moodle page';
View
2 blocks/social_activities/version.php
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2012091600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->version = 2012110800; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2012061700; // Requires this Moodle version
$plugin->component = 'block_social_activities'; // Full name of the plugin (used for diagnostics)
View
10 blocks/tag_flickr/db/access.php
@@ -26,16 +26,6 @@
$capabilities = array(
- 'block/tag_flickr:myaddinstance' => array(
- 'captype' => 'write',
- 'contextlevel' => CONTEXT_SYSTEM,
- 'archetypes' => array(
- 'user' => CAP_ALLOW
- ),
-
- 'clonepermissionsfrom' => 'moodle/my:manageblocks'
- ),
-
'block/tag_flickr:addinstance' => array(
'riskbitmask' => RISK_SPAM | RISK_XSS,
View
1 blocks/tag_flickr/lang/en/block_tag_flickr.php
@@ -38,4 +38,3 @@
$string['relevance'] = 'Relevance';
$string['sortby'] = 'Sort by';
$string['tag_flickr:addinstance'] = 'Add a new flickr block';
-$string['tag_flickr:myaddinstance'] = 'Add a new flickr block to the My Moodle page';
View
2 blocks/tag_flickr/version.php
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2012091600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->version = 2012110800; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2012061700; // Requires this Moodle version
$plugin->component = 'block_tag_flickr'; // Full name of the plugin (used for diagnostics)
View
10 blocks/tag_youtube/db/access.php
@@ -26,16 +26,6 @@
$capabilities = array(
- 'block/tag_youtube:myaddinstance' => array(
- 'captype' => 'write',
- 'contextlevel' => CONTEXT_SYSTEM,
- 'archetypes' => array(
- 'user' => CAP_ALLOW
- ),
-
- 'clonepermissionsfrom' => 'moodle/my:manageblocks'
- ),
-
'block/tag_youtube:addinstance' => array(
'riskbitmask' => RISK_SPAM | RISK_XSS,
View
1 blocks/tag_youtube/lang/en/block_tag_youtube.php
@@ -43,5 +43,4 @@
$string['scienceandtech'] = 'Science & Tech';
$string['sports'] = 'Sports';
$string['tag_youtube:addinstance'] = 'Add a new youtube block';
-$string['tag_youtube:myaddinstance'] = 'Add a new youtube block to the My Moodle page';
$string['travel'] = 'Travel & Places';
View
2 blocks/tag_youtube/version.php
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2012091600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->version = 2012110800; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2012061700; // Requires this Moodle version
$plugin->component = 'block_tag_youtube'; // Full name of the plugin (used for diagnostics)

0 comments on commit 4fc95a9

Please sign in to comment.