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

This commit is contained in:
兔姬桑
2020-12-29 13:07:17 +08:00
parent 015d4a8a28
commit eed3c80fb6
2 changed files with 2 additions and 1 deletions

View File

@@ -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');
}

View File

@@ -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>