access.php 806 B

123456789101112131415161718192021222324
  1. <?php
  2. $capabilities = array(
  3. 'mod/gradeimporter:addinstance' => array(
  4. 'riskbitmask' => RISK_XSS,
  5. 'captype' => 'write',
  6. 'contextlevel' => CONTEXT_COURSE,
  7. 'archetypes' => array(
  8. 'editingteacher' => CAP_ALLOW,
  9. 'manager' => CAP_ALLOW
  10. ),
  11. 'clonepermissionsfrom' => 'moodle/course:manageactivies'
  12. ),
  13. 'mod/gradeimporter:view' => array(
  14. 'captype' => 'read',
  15. 'contextlevel' => CONTEXT_MODULE,
  16. 'archetypes' => array(
  17. 'guest' => CAP_ALLOW,
  18. 'student' => CAP_ALLOW,
  19. 'teacher' => CAP_ALLOW,
  20. 'editingteacher' => CAP_ALLOW,
  21. 'manager' => CAP_ALLOW
  22. )
  23. )
  24. );