Browse Source

Fix 维护界面文件缺失部分class & 超级管理登录后未正确转跳至管理界面

兔姬桑 4 years ago
parent
commit
eed3c80fb6

+ 1 - 1
app/Http/Controllers/AuthController.php

@@ -89,7 +89,7 @@ class AuthController extends Controller
 
         // 根据权限跳转
         if (Auth::check()) {
-            if (Auth::getUser()->hasPermissionTo('admin.index')) {
+            if (Auth::getUser()->hasPermissionTo('admin.index') || Auth::getUser()->hasRole('Super Admin')) {
                 return Redirect::route('admin.index');
             }
 

+ 1 - 0
resources/views/auth/maintenance.blade.php

@@ -1,5 +1,6 @@
 @extends('_layout')
 @section('title', '维护 | Maintenance')
+@section('body_class','page-login-v3 layout-full')
 @section('layout_content')
    <!--[if lt IE 8]> <p class="browserupgrade">您正在使用 <strong>过时/老旧</strong> 的浏览器。 为了您的使用体验,请
     <a href="http://browsehappy.com/" target="_blank">升级您的浏览器</a> <br/>You are using an <strong>outdated</strong>