access.php 716 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. defined('MOODLE_INTERNAL') || die();
  3. $capabilities = array(
  4. 'block/tasksummary:myaddinstance' => array(
  5. 'captype' => 'write',
  6. 'contextlevel' => CONTEXT_SYSTEM,
  7. 'archetypes' => array(
  8. 'user' => CAP_ALLOW
  9. ),
  10. 'clonepermissionsfrom' => 'moodle/my:manageblocks'
  11. ),
  12. 'block/tasksummary:addinstance' => array(
  13. 'riskbitmask' => RISK_SPAM | RISK_XSS,
  14. 'captype' => 'write',
  15. 'contextlevel' => CONTEXT_BLOCK,
  16. 'archetypes' => array(
  17. 'editingteacher' => CAP_ALLOW,
  18. 'manager' => CAP_ALLOW
  19. ),
  20. 'clonepermissionsfrom' => 'moodle/site:manageblocks'
  21. ),
  22. );