Index: trunk/kernel/include/usersession.php =================================================================== diff -u -r402 -r415 --- trunk/kernel/include/usersession.php (.../usersession.php) (revision 402) +++ trunk/kernel/include/usersession.php (.../usersession.php) (revision 415) @@ -669,15 +669,15 @@ if(strlen($GroupList) && $GroupList !="0") { $this->SysPermCache = array(); - $sql = "SELECT * FROM ".GetTablePrefix()."Permissions WHERE Type=1 AND PermissionValue=1 AND GroupId IN (".$GroupList.")"; + $sql = "SELECT * FROM ".GetTablePrefix()."Permissions WHERE Type=1 AND GroupId IN (".$GroupList.")"; //echo $sql."
\n"; $rs = $this->adodbConnection->Execute($sql); while($rs && !$rs->EOF) { $val = $rs->fields["PermissionValue"]; - if($val==1) - $this->SysPermCache[$rs->fields["Permission"]] = 1; + //if($val==1) + $this->SysPermCache[$rs->fields["Permission"]] = $val; $PermList[] = $rs->fields["Permission"]; $rs->MoveNext(); }