From: <lph...@us...> - 2008-12-31 21:28:52
|
Revision: 16160 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=16160&view=rev Author: lphuberdeau Date: 2008-12-31 21:28:47 +0000 (Wed, 31 Dec 2008) Log Message: ----------- [MOD]?\194?\160Exclude anonymous as a default group for registered users Modified Paths: -------------- branches/experimental/perms/lib/tikilib.php Modified: branches/experimental/perms/lib/tikilib.php =================================================================== --- branches/experimental/perms/lib/tikilib.php 2008-12-31 20:17:29 UTC (rev 16159) +++ branches/experimental/perms/lib/tikilib.php 2008-12-31 21:28:47 UTC (rev 16160) @@ -1378,14 +1378,12 @@ $userid = $this->get_user_id($user); $query = "select `groupName` from `users_usergroups` where `userId`=?"; $result=$this->query($query,array((int) $userid)); - $ret = array(); + $ret = array( "Registered" ); while ($res = $result->fetchRow()) { $ret[] = $res["groupName"]; $included = $this->get_included_groups($res["groupName"]); $ret = array_merge($ret, $included); } - $ret[] = "Registered"; - $ret[] = "Anonymous"; $ret = array_unique($ret); $this->usergroups_cache[$user] = $ret; return $ret; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |