4 include_once(
"./Services/Object/classes/class.ilObjectAccess.php");
43 $this->
user = $DIC->user();
44 $this->lng = $DIC->language();
45 $this->rbacsystem = $DIC->rbac()->system();
46 $this->access = $DIC->access();
52 array(
"permission" =>
"read",
"cmd" =>
"preview",
"lang_var" =>
"preview",
"default" =>
true),
53 array(
"permission" =>
"write",
"cmd" =>
"view",
"lang_var" =>
"edit"),
54 array(
"permission" =>
"read",
"cmd" =>
"createfromtemplate",
"lang_var" =>
"prtf_create_portfolio_from_template"),
61 public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
68 if ($a_user_id ==
"") {
74 if (!self::_lookupOnline($a_obj_id)
75 && !
$rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id)) {
83 if (!self::_lookupOnline($a_obj_id)) {
92 switch ($a_permission) {
95 if (!self::_lookupOnline($a_obj_id) &&
96 (!
$rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id))) {
108 include_once
"Modules/Portfolio/classes/class.ilObjPortfolioTemplate.php";
119 $ilAccess = $DIC->access();
121 $t_arr = explode(
"_", $a_target);
123 if ($t_arr[0] !=
"prtt" || ((
int) $t_arr[1]) <= 0) {
127 if ($ilAccess->checkAccess(
"read",
"", $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="")
Class ilObjPortfolioTemplateAccess.
static _checkGoto($a_target)
check whether goto script will succeed
static _lookupOnline($a_id)