function getUserPerms($uid, $auth_mod = NULL) { if ($auth_mod == NULL) { $auth_mod = self::$config->auth_class; } $prefs = new Prefs($uid); API::DEBUG("[Perms::getUserPerms()] uid = {$uid}, auth_mod = {$auth_mod}"); $tmp_where = new WhereClause('uid', $uid); $tmp_where->w_and('auth_mod', $auth_mod); $prefs->where_clause($tmp_where); $perms = $prefs->getUsingWhere(); return $perms; }