From: <jy...@us...> - 2013-01-22 00:17:48
|
Revision: 44581 http://sourceforge.net/p/tikiwiki/code/44581 Author: jyhem Date: 2013-01-22 00:17:40 +0000 (Tue, 22 Jan 2013) Log Message: ----------- [FIX][bp r44580] Correct access issue with categories Revision Links: -------------- http://sourceforge.net/p/tikiwiki/code/44580 Modified Paths: -------------- branches/9.x/tiki-view_blog_post.php Modified: branches/9.x/tiki-view_blog_post.php =================================================================== --- branches/9.x/tiki-view_blog_post.php 2013-01-22 00:05:23 UTC (rev 44580) +++ branches/9.x/tiki-view_blog_post.php 2013-01-22 00:17:40 UTC (rev 44581) @@ -52,7 +52,9 @@ $tikilib->get_perm_object($blogId, 'blog'); -$access->check_permission('tiki_p_read_blog'); +if (!$user || !$tikilib->user_has_perm_on_object($user, $blogId, 'blog', 'tiki_p_read_blog')) { + $access->display_error( '', 'You do not have permission to use this feature: tiki_p_read_blog'); +} $ownsblog = 'n'; if ($user && $user == $blog_data["user"]) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |