all_permissions.inc.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. * @package chamilo.permissions
  8. */
  9. // possible permissions
  10. $rights_full = array("View", "Add", "Edit", "Delete", "Visibility", "Move");
  11. $rights_limited = array("Add", "Edit", "Delete");
  12. // first we determine what can be done in each tool. We do this for each tool.
  13. $tool_rights[TOOL_LINK] = array(
  14. "View",
  15. "Add",
  16. "Edit",
  17. "Delete",
  18. "Visibility",
  19. "Move",
  20. );
  21. $tool_rights[TOOL_DOCUMENT] = array(
  22. "View",
  23. "Add",
  24. "Edit",
  25. "Delete",
  26. "Visibility",
  27. "Move",
  28. );
  29. //$tool_rights[TOOL_CALENDAR_EVENT]=array("View","Add","Edit","Delete","Visibility");
  30. $tool_rights[TOOL_ANNOUNCEMENT] = array(
  31. "View",
  32. "Add",
  33. "Edit",
  34. "Delete",
  35. "Visibility",
  36. "Move",
  37. );
  38. //$tool_rights[TOOL_STUDENTPUBLICATION]=array("View","Edit","Delete","Visibility");
  39. //$tool_rights[TOOL_COURSE_DESCRIPTION]=array("View","Add","Edit","Delete","Visibility");
  40. //$tool_rights[TOOL_LEARNPATH]=array("View","Add","Edit","Delete","Visibility");
  41. //$tool_rights[TOOL_BB_FORUM]=array("View","Add","Edit","Delete");
  42. //$tool_rights[TOOL_BB_POST]=array("View","Add","Edit","Delete");
  43. //$tool_rights[TOOL_DROPBOX]=array("View","Add","Delete");
  44. //$tool_rights[TOOL_QUIZ]=array("View","Add","Edit","Delete","Visibility");
  45. $tool_rights[TOOL_USER] = array("View", "Add", "Edit", "Delete");
  46. //$tool_rights[TOOL_GROUP]=array("View","Add","Edit","Delete");
  47. //$tool_rights[TOOL_CHAT]=array("View","Delete");
  48. //$tool_rights[TOOL_STUDENTPUBLICATION]=array("View","Add","Edit","Delete");
  49. // this value can be checkbox or image
  50. $setting_visualisation = 'image';