all_permissions.inc.php 1.7 KB

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