36 $this->db = $DIC->database();
37 $this->rbac_system = $DIC->rbac()->system();
45 if (self::$setting_ref_id == 0) {
46 $set = $this->db->queryF(
47 'SELECT object_reference.ref_id FROM object_reference, tree, object_data 48 WHERE tree.parent = %s 49 AND object_data.type = %s 50 AND object_reference.ref_id = tree.child 51 AND object_reference.obj_id = object_data.obj_id',
52 array(
'integer',
'text'),
53 array(SYSTEM_FOLDER_ID,
'dshs')
55 $rec = $this->db->fetchAssoc($set);
56 self::$setting_ref_id = (int) $rec[
"ref_id"];
58 return self::$setting_ref_id;
65 return $this->rbac_system->checkAccessOfUser($user_id,
"change_presentation", $this->
getSettingsRefId());
getSettingsRefId()
Get dashboard settings ref id.
canChangePresentation(int $user_id)
Dashboard permission wrapper.
__construct()
Constructor.