Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439 Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
55 lines
1.7 KiB
PHP
55 lines
1.7 KiB
PHP
<?php
|
|
/**
|
|
* In this page all the possible rights inside a course are defined.
|
|
* This is the start for the Matrix that you'll use to assign rights to
|
|
* a user, group or role.
|
|
*
|
|
* @author Patrick Cool <patrick.cool@ugent.be>, Ghent University
|
|
*
|
|
* @package chamilo.permissions
|
|
*/
|
|
// possible permissions
|
|
$rights_full = ["View", "Add", "Edit", "Delete", "Visibility", "Move"];
|
|
$rights_limited = ["Add", "Edit", "Delete"];
|
|
|
|
// first we determine what can be done in each tool. We do this for each tool.
|
|
$tool_rights[TOOL_LINK] = [
|
|
"View",
|
|
"Add",
|
|
"Edit",
|
|
"Delete",
|
|
"Visibility",
|
|
"Move",
|
|
];
|
|
$tool_rights[TOOL_DOCUMENT] = [
|
|
"View",
|
|
"Add",
|
|
"Edit",
|
|
"Delete",
|
|
"Visibility",
|
|
"Move",
|
|
];
|
|
//$tool_rights[TOOL_CALENDAR_EVENT]=array("View","Add","Edit","Delete","Visibility");
|
|
$tool_rights[TOOL_ANNOUNCEMENT] = [
|
|
"View",
|
|
"Add",
|
|
"Edit",
|
|
"Delete",
|
|
"Visibility",
|
|
"Move",
|
|
];
|
|
//$tool_rights[TOOL_STUDENTPUBLICATION]=array("View","Edit","Delete","Visibility");
|
|
//$tool_rights[TOOL_COURSE_DESCRIPTION]=array("View","Add","Edit","Delete","Visibility");
|
|
//$tool_rights[TOOL_LEARNPATH]=array("View","Add","Edit","Delete","Visibility");
|
|
//$tool_rights[TOOL_BB_FORUM]=array("View","Add","Edit","Delete");
|
|
//$tool_rights[TOOL_BB_POST]=array("View","Add","Edit","Delete");
|
|
//$tool_rights[TOOL_DROPBOX]=array("View","Add","Delete");
|
|
//$tool_rights[TOOL_QUIZ]=array("View","Add","Edit","Delete","Visibility");
|
|
$tool_rights[TOOL_USER] = ["View", "Add", "Edit", "Delete"];
|
|
//$tool_rights[TOOL_GROUP]=array("View","Add","Edit","Delete");
|
|
//$tool_rights[TOOL_CHAT]=array("View","Delete");
|
|
//$tool_rights[TOOL_STUDENTPUBLICATION]=array("View","Add","Edit","Delete");
|
|
|
|
// this value can be checkbox or image
|
|
$setting_visualisation = 'image';
|