mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 05:07:27 +02:00
check_class needs to handle 'everyone' class
This commit is contained in:
@@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/class2.php,v $
|
| $Source: /cvs_backup/e107_0.8/class2.php,v $
|
||||||
| $Revision: 1.32 $
|
| $Revision: 1.33 $
|
||||||
| $Date: 2007-12-09 16:42:21 $
|
| $Date: 2007-12-15 09:55:37 $
|
||||||
| $Author: e107steved $
|
| $Author: e107steved $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -917,6 +917,8 @@ function check_class($var, $userclass = USERCLASS_LIST, $uid = 0)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_numeric($var) && ($var == e_UC_PUBLIC)) return TRUE; // Accept numeric class zero - 'PUBLIC'
|
||||||
|
|
||||||
// userid has been supplied, go build that user's class list
|
// userid has been supplied, go build that user's class list
|
||||||
if(is_numeric($uid) && $uid > 0)
|
if(is_numeric($uid) && $uid > 0)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user