From: <jon...@us...> - 2008-11-19 18:35:27
|
Revision: 15691 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=15691&view=rev Author: jonnybradley Date: 2008-11-19 18:35:23 +0000 (Wed, 19 Nov 2008) Log Message: ----------- [FIX] Added group check to get_object_categories_perms() (Anonymous couldn't view categorized objects) Modified Paths: -------------- trunk/lib/categories/categlib.php Modified: trunk/lib/categories/categlib.php =================================================================== --- trunk/lib/categories/categlib.php 2008-11-19 16:11:34 UTC (rev 15690) +++ trunk/lib/categories/categlib.php 2008-11-19 18:35:23 UTC (rev 15691) @@ -514,7 +514,8 @@ $return_perms = array(); // initialize array for storing perms to be returned if (!$cachelib->isCached("categories_permission_names")) { - $perms = $userlib->get_permissions(0, -1, 'permName_desc', '', 'category'); + $group = $userlib->get_user_default_group($user); + $perms = $userlib->get_permissions(0, -1, 'permName_desc', $group, 'category'); $cachelib->cacheItem("categories_permission_names",serialize($perms)); } else { $perms = unserialize($cachelib->getCached("categories_permission_names")); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |