30 $this->
user = $DIC->user();
31 $this->access = $DIC->access();
49 array(
"permission" =>
"read",
"cmd" =>
"preview",
"lang_var" =>
"show",
"default" =>
true),
50 array(
"permission" =>
"write",
"cmd" =>
"render",
"lang_var" =>
"edit"),
51 array(
"permission" =>
"contribute",
"cmd" =>
"render",
"lang_var" =>
"edit"),
52 array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"settings"),
53 array(
"permission" =>
"write",
"cmd" =>
"export",
"lang_var" =>
"export_html")
66 $ilAccess = $DIC->access();
68 $t_arr = explode(
"_", $a_target);
70 if (substr($a_target, -3) ==
"wsp") {
74 if ($t_arr[0] !=
"blog" || ((
int) $t_arr[1]) <= 0) {
79 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]) ||
80 $ilAccess->checkAccess(
"visible",
"", $t_arr[1])) {
96 if (preg_match(
"/\\/blog_([\\d]*)\\//uism", $ilWACPath->
getPath(),
$results)) {
101 $node_id = $tree->lookupNodeId($obj_id);
104 if ($access_handler->checkAccessOfUser($tree,
$ilUser->getId(),
"read",
"view", $node_id,
"blog")) {
111 foreach ($ref_ids as $ref_id) {
112 if ($ilAccess->checkAccessOfUser(
$ilUser->getId(),
"read",
"view", $ref_id,
"blog", $obj_id)) {
132 $setting = $DIC->settings();
134 if ($setting->get(
"disable_comments")) {
137 if (!$privacy->enabledCommentsExport()) {
static commentsActivated($a_rep_obj_id, $a_obj_id, $a_obj_type, $a_news_id=0)
Are comments activated for object?
Access handler for personal workspace.
canBeDelivered(ilWACPath $ilWACPath)
static _getAllReferences($a_id)
get all reference ids of object
Tree handler for personal workspace.
static hasAccess($a_node_id, $a_is_portfolio=false)
static _checkGoto($a_target)
check whether goto script will succeed
Class ilWACCheckingClass.
static _getCommands()
get commands
__construct()
Constructor.
static _getInstance()
Get instance of ilPrivacySettings.
static isCommentsExportPossible($blog_id)
Is comments export possible?