From: <an...@us...> - 2006-02-27 10:39:46
|
Update of /cvsroot/tikiwiki/tiki/lib/wiki-plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10806/lib/wiki-plugins Modified Files: Tag: BRANCH-1-9 wikiplugin_group.php Log Message: now if groups=>Anonymous , then registered wont see $data Index: wikiplugin_group.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/wiki-plugins/wikiplugin_group.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -d -r1.1.2.1 -r1.1.2.2 --- wikiplugin_group.php 24 Jan 2006 22:21:36 -0000 1.1.2.1 +++ wikiplugin_group.php 27 Feb 2006 10:39:40 -0000 1.1.2.2 @@ -15,11 +15,21 @@ $userGroups = $userlib->get_user_groups($user); + if ($params['groups'] == 'Anonymous') { + $userGroups = array_shift($userGroups); + } + + if ((sizeof($userGroups) == 1) && (sizeof($groups) == 1)) { + $tgroups = implode('',$groups); + if ($tgroups == $userGroups) { + return $data; + } + } else { foreach ($userGroups as $grp) { if (in_array($grp, $groups)) return $data; } - + } return ''; } |