From: Erin S. <ebu...@us...> - 2004-08-05 19:57:00
|
Update of /cvsroot/squirrelmail/smdoc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10954 Modified Files: sqmindex.php Log Message: tweaks to behavior of permissions Index: sqmindex.php =================================================================== RCS file: /cvsroot/squirrelmail/smdoc/sqmindex.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -w -r1.9 -r1.10 --- sqmindex.php 5 Aug 2004 19:42:09 -0000 1.9 +++ sqmindex.php 5 Aug 2004 19:56:50 -0000 1.10 @@ -104,8 +104,11 @@ { foreach ($objects as $object) { + if ( !empty($object['permissions']) ) + $object['permissions'] = unserialize($object['permissions']); + // If viewer does not have permission to view this kind of object, skip it - if ( !$foowd->hasPermission(getClassName($object['classid']), 'view', 'object', $object['permissions']) ) + if ( !$foowd->hasPermission(getClassName($object['classid']), 'view', 'OBJECT', $object['permissions']) ) continue; $list_objects[$i] = $object; |