all_permissions.inc.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * In this page all the possible rights inside a course are defined.
  4. * This is the start for the Matrix that you'll use to assign rights to
  5. * a user, group or role
  6. * @author Patrick Cool <patrick.cool@ugent.be>, Ghent University
  7. */
  8. // possible permissions
  9. $rights_full=array("View","Add","Edit","Delete","Visibility","Move");
  10. $rights_limited=array("Add","Edit","Delete");
  11. // first we determine what can be done in each tool. We do this for each tool.
  12. $tool_rights[TOOL_LINK]=array("View","Add","Edit","Delete","Visibility", "Move");
  13. $tool_rights[TOOL_DOCUMENT]=array("View","Add","Edit","Delete","Visibility","Move");
  14. //$tool_rights[TOOL_CALENDAR_EVENT]=array("View","Add","Edit","Delete","Visibility");
  15. $tool_rights[TOOL_ANNOUNCEMENT]=array("View","Add","Edit","Delete","Visibility", "Move");
  16. //$tool_rights[TOOL_STUDENTPUBLICATION]=array("View","Edit","Delete","Visibility");
  17. //$tool_rights[TOOL_COURSE_DESCRIPTION]=array("View","Add","Edit","Delete","Visibility");
  18. //$tool_rights[TOOL_LEARNPATH]=array("View","Add","Edit","Delete","Visibility");
  19. //$tool_rights[TOOL_BB_FORUM]=array("View","Add","Edit","Delete");
  20. //$tool_rights[TOOL_BB_POST]=array("View","Add","Edit","Delete");
  21. //$tool_rights[TOOL_DROPBOX]=array("View","Add","Delete");
  22. //$tool_rights[TOOL_QUIZ]=array("View","Add","Edit","Delete","Visibility");
  23. $tool_rights[TOOL_USER]=array("View","Add","Edit","Delete");
  24. //$tool_rights[TOOL_GROUP]=array("View","Add","Edit","Delete");
  25. //$tool_rights[TOOL_CHAT]=array("View","Delete");
  26. //$tool_rights[TOOL_CONFERENCE]=array("View","Add","Edit","Delete");
  27. //$tool_rights[TOOL_STUDENTPUBLICATION]=array("View","Add","Edit","Delete");
  28. // this value can be checkbox or image
  29. $setting_visualisation='image';
  30. ?>