24 include_once(
"./Services/Object/classes/class.ilObjectAccess.php");
50 public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
52 global
$ilUser,
$lng, $rbacsystem, $ilAccess, $ilias;
54 if ($a_user_id ==
"") {
55 $a_user_id = $ilUser->getId();
58 switch ($a_permission) {
60 include_once
'./Modules/RemoteTest/classes/class.ilObjRemoteTest.php';
62 $tutor = $rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id);
67 if (!$tutor
and !$active) {
73 $tutor = $rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id);
77 include_once
'Modules/RemoteTest/classes/class.ilObjRemoteTest.php';
105 array(
"permission" =>
"read",
"cmd" =>
"show",
"lang_var" =>
"info",
107 array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"edit")
static _getCommands()
get commands
_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...
const IL_NO_OBJECT_ACCESS
static _lookupOnline($a_obj_id)
Lookup online.