Commit 28772aba authored by sylvieg's avatar sylvieg

[FIX]perm

parent d8bb5d63
......@@ -325,7 +325,7 @@ class FreetagLib extends ObjectLib
$bloglib = TikiLib::lib('blog');
$post_info = $bloglib->get_post($row['itemId']);
if (!empty($objectId) && $objectId != $post_info['blogId']) {
} elseif ($tiki_p_admin == 'y' && $this->user_has_perm_on_object($user, $post_info['blogId'], 'blog', 'tiki_p_read_blog')) {
} elseif ($tiki_p_admin == 'y' || $this->user_has_perm_on_object($user, $post_info['blogId'], 'blog', 'tiki_p_read_blog')) {
$ok = true;
}
} elseif ($tiki_p_admin == 'y') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment