mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-11 23:19:05 +00:00
新系统日志模块
This commit is contained in:
@@ -525,7 +525,7 @@ class UserController extends Controller
|
||||
public function switchToAdmin(): JsonResponse
|
||||
{
|
||||
if (! Session::has('admin')) {
|
||||
return Response::json(['status' => 'fail', 'message' => trans('error.unauthorized')]);
|
||||
return Response::json(['status' => 'fail', 'message' => trans('errors.unauthorized')]);
|
||||
}
|
||||
|
||||
// 管理员信息重新写入user
|
||||
|
||||
Reference in New Issue
Block a user