40 $this->
user = $DIC->user();
41 $this->lng = $DIC->language();
42 $this->rbacsystem = $DIC->rbac()->system();
43 $this->access = $DIC->access();
49 array(
"permission" =>
"read",
"cmd" =>
"preview",
"lang_var" =>
"preview",
"default" =>
true),
50 array(
"permission" =>
"write",
"cmd" =>
"view",
"lang_var" =>
"edit"),
51 array(
"permission" =>
"read",
"cmd" =>
"createfromtemplate",
"lang_var" =>
"prtf_create_portfolio_from_template"),
58 public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
65 if ($a_user_id ==
"") {
71 if (!self::_lookupOnline($a_obj_id)
72 && !
$rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id)) {
80 if (!self::_lookupOnline($a_obj_id)) {
89 switch ($a_permission) {
92 if (!self::_lookupOnline($a_obj_id) &&
93 (!
$rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id))) {
117 $ilDB = $DIC->database();
119 $q =
"SELECT id, is_online FROM usr_portfolio WHERE " .
120 $ilDB->in(
"id", $a_ids,
false,
"integer");
124 $status[$r[
"id"]] = $r[
"is_online"];
137 $ilAccess = $DIC->access();
139 $t_arr = explode(
"_", $a_target);
141 if ($t_arr[0] !=
"prtt" || ((
int) $t_arr[1]) <= 0) {
145 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]) ||
146 $ilAccess->checkAccess(
"visible",
"", $t_arr[1])) {
const IL_NO_OBJECT_ACCESS
__construct()
Constructor.
static lookupOnline($a_id)
Is online?
_checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")
static _lookupOnlineStatus($a_ids)
Check wether booking pool is online (legacy version)
Class ilObjPortfolioTemplateAccess.
static _checkGoto($a_target)
check whether goto script will succeed
static _lookupOnline($a_id)