From dfd1b6bce43fb79bc04595cd853b2034f34b64e0 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 16 Apr 2015 15:23:57 -0700 Subject: [PATCH] CLI perms fix. --- class2.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/class2.php b/class2.php index 3dd48be55..2411f06b1 100644 --- a/class2.php +++ b/class2.php @@ -1372,6 +1372,11 @@ function check_class($var, $userclass = USERCLASS_LIST, $uid = 0) return TRUE; } + if(e107::isCli()) + { + return true; + } + if(is_numeric($uid) && $uid > 0) { // userid has been supplied, go build that user's class list $userclass = class_list($uid);