all_permissions.inc.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. /**
  10. * Code
  11. */
  12. // possible permissions
  13. $rights_full=array("View","Add","Edit","Delete","Visibility","Move");
  14. $rights_limited=array("Add","Edit","Delete");
  15. // first we determine what can be done in each tool. We do this for each tool.
  16. $tool_rights[TOOL_LINK]=array("View","Add","Edit","Delete","Visibility", "Move");
  17. $tool_rights[TOOL_DOCUMENT]=array("View","Add","Edit","Delete","Visibility","Move");
  18. //$tool_rights[TOOL_CALENDAR_EVENT]=array("View","Add","Edit","Delete","Visibility");
  19. $tool_rights[TOOL_ANNOUNCEMENT]=array("View","Add","Edit","Delete","Visibility", "Move");
  20. //$tool_rights[TOOL_STUDENTPUBLICATION]=array("View","Edit","Delete","Visibility");
  21. //$tool_rights[TOOL_COURSE_DESCRIPTION]=array("View","Add","Edit","Delete","Visibility");
  22. //$tool_rights[TOOL_LEARNPATH]=array("View","Add","Edit","Delete","Visibility");
  23. //$tool_rights[TOOL_BB_FORUM]=array("View","Add","Edit","Delete");
  24. //$tool_rights[TOOL_BB_POST]=array("View","Add","Edit","Delete");
  25. //$tool_rights[TOOL_DROPBOX]=array("View","Add","Delete");
  26. //$tool_rights[TOOL_QUIZ]=array("View","Add","Edit","Delete","Visibility");
  27. $tool_rights[TOOL_USER]=array("View","Add","Edit","Delete");
  28. //$tool_rights[TOOL_GROUP]=array("View","Add","Edit","Delete");
  29. //$tool_rights[TOOL_CHAT]=array("View","Delete");
  30. //$tool_rights[TOOL_CONFERENCE]=array("View","Add","Edit","Delete");
  31. //$tool_rights[TOOL_STUDENTPUBLICATION]=array("View","Add","Edit","Delete");
  32. // this value can be checkbox or image
  33. $setting_visualisation='image';
  34. ?>