Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Commit

Permalink
fix(Anonymous): Fix Auth Page 500 after commit 2cd1a499
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhilip committed Jul 28, 2019
1 parent 2cd1a49 commit 4e60ee8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/views/layout/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
?>
<!DOCTYPE html>
<html lang="en">
Expand Down

0 comments on commit 4e60ee8

Please sign in to comment.