From 4e60ee8a6f6942e7b0f135119427db8b5685b358 Mon Sep 17 00:00:00 2001 From: Rhilip Date: Sun, 28 Jul 2019 21:38:29 +0800 Subject: [PATCH] fix(Anonymous): Fix Auth Page 500 after commit `2cd1a499` --- apps/views/layout/base.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/views/layout/base.php b/apps/views/layout/base.php index 8b9f137..dab98a7 100644 --- a/apps/views/layout/base.php +++ b/apps/views/layout/base.php @@ -10,8 +10,9 @@ */ $css_tag = env('APP_DEBUG') ? time() : config('base.site_css_update_date'); -$extend_debug_info = config('base.enable_extend_debug') && - app()->site->getCurUser()->getClass(true) > config('authority.see_extend_debug_log'); +$extend_debug_info = app()->site->getCurUser() // Not Anonymous + && config('base.enable_extend_debug') // Enabled Extend Debug + && app()->site->getCurUser()->isPrivilege('see_extend_debug_log'); // Privilege is enough ?>