access.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. 'mod/gradeimporter:addsubmission' => array(
  25. 'captype' => 'write',
  26. 'contextlevel' => CONTEXT_MODULE,
  27. 'archetypes' => array(
  28. 'editingteacher' => CAP_ALLOW
  29. )
  30. ),
  31. 'mod/gradeimporter:edit' => array(
  32. 'captype' => 'write',
  33. 'contextlevel' => CONTEXT_MODULE,
  34. 'archetypes' => array(
  35. 'editingteacher' => CAP_ALLOW,
  36. 'manager' => CAP_ALLOW
  37. )
  38. )
  39. );