From: Sylvie G. <sgr...@gm...> - 2008-11-25 17:08:29
|
Jonny, This commit is not working Now my anonynmous can see galleries with a category reserved to registered function get_permissions($offset = 0, $maxRecords = -1, $sort_mode = 'permName_asc', $find = '', $type = '', $group = '', $enabledOnly = false) { So adding group as the 4th argument is strange.... If I rollback , it is working - I do not understand your comment. If I have a gallery with a category that has no permission - my anonymous can see the gallery Please can you detail the problem Thanks Sylvie On Wed, 2008-11-19 at 18:35 +0000, jon...@us... wrote: > 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. > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Tikiwiki-cvs mailing list > Tik...@li... > https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs |