1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

check_class needs to handle 'everyone' class

This commit is contained in:
e107steved
2007-12-15 09:55:37 +00:00
parent 57563fb703
commit 933c1660ad

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/class2.php,v $
| $Revision: 1.32 $
| $Date: 2007-12-09 16:42:21 $
| $Revision: 1.33 $
| $Date: 2007-12-15 09:55:37 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
@@ -917,6 +917,8 @@ function check_class($var, $userclass = USERCLASS_LIST, $uid = 0)
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
if(is_numeric($uid) && $uid > 0)
{