mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 18:42:49 +08:00
所有待办完成
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace app\middleware;
|
||||
|
||||
class PermissionAuth
|
||||
{
|
||||
public function handle($request, \Closure $next)
|
||||
{
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
@@ -16,6 +16,10 @@ class PermissionRecord
|
||||
'action'=>$request->action()
|
||||
];
|
||||
|
||||
if(in_array('',$current_access_info)){
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
$model_permission = AdminPermission::where($current_access_info)->find();
|
||||
|
||||
if(empty($model_permission)){
|
||||
|
||||
Reference in New Issue
Block a user