4 include_once(
"./Services/ContainerReference/classes/class.ilContainerReferenceAccess.php");
32 public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
36 $ilAccess = $DIC[
'ilAccess'];
38 switch ($a_permission) {
41 include_once
'./Modules/GroupReference/classes/class.ilObjGroupReference.php';
44 if (!$ilAccess->checkAccessOfUser($a_user_id, $a_permission, $a_cmd, $target_ref_id)) {
77 $ilAccess = $DIC[
'ilAccess'];
79 if ($ilAccess->checkAccess(
'write',
'', $a_ref_id)) {
82 array(
"permission" =>
"visible",
"cmd" =>
"",
"lang_var" =>
"show",
"default" =>
true),
83 array(
"permission" =>
"write",
"cmd" =>
"editReference",
"lang_var" =>
"edit")
86 include_once(
'./Modules/Group/classes/class.ilObjGroupAccess.php');
static _getCommands($a_ref_id=0)
get commands
static _getCommands()
get commands
static _lookupTargetRefId($a_obj_id)
Lookup target ref_id.
_checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")
Checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAcce...