Commit 101f4f41 authored by nkoth's avatar nkoth

[FIX] People with perm to view in modules and feeds can't see posts

parent 51416727
......@@ -586,7 +586,7 @@ class BlogLib extends TikiDb_Bridge
$ret[] = $res;
}
$ret = Perms::filter(array( 'type' => 'blog post' ), 'object', $ret, array( 'object' => 'postId' ), array('read_blog'));
$ret = Perms::filter(array( 'type' => 'blog post' ), 'object', $ret, array( 'object' => 'postId' ), array('read_blog', 'blog_post_view_ref'));
$retval = array();
$retval['data'] = $ret;
......
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