From 933c1660ad3367f37be0a19b92a2efbe0cf7f454 Mon Sep 17 00:00:00 2001 From: e107steved Date: Sat, 15 Dec 2007 09:55:37 +0000 Subject: [PATCH] check_class needs to handle 'everyone' class --- class2.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/class2.php b/class2.php index a76b2426c..89cf5560f 100644 --- a/class2.php +++ b/class2.php @@ -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) {