access.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * This is access capabilities file
  4. *
  5. * @author Patricia Alves Rodrigues
  6. * @author Leônidas O. Brandão
  7. * @version v 1.0 2012/01/10
  8. * @package iassign_block_db
  9. * @since 2012/01/10
  10. * @copyright iMatica (<a href="http://www.matematica.br">iMath</a>) - Computer Science Dep. of IME-USP (Brazil)
  11. * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  12. */
  13. $capabilities = array(
  14. 'block/iassign_block:editingteacher' => array(
  15. 'riskbitmask' => RISK_XSS,
  16. 'captype' => 'write',
  17. 'contextlevel' => CONTEXT_MODULE,
  18. 'legacy' => array(
  19. 'teacher' => CAP_ALLOW,
  20. 'editingteacher' => CAP_ALLOW,
  21. 'coursecreator' => CAP_ALLOW,
  22. 'manager' => CAP_ALLOW
  23. ))
  24. ,
  25. 'block/iassign_block:addinstance' => array(
  26. 'riskbitmask' => RISK_XSS,
  27. 'captype' => 'write',
  28. 'contextlevel' => CONTEXT_MODULE,
  29. 'legacy' => array(
  30. 'teacher' => CAP_ALLOW,
  31. 'editingteacher' => CAP_ALLOW,
  32. 'coursecreator' => CAP_ALLOW,
  33. 'manager' => CAP_ALLOW
  34. )
  35. )
  36. );