Skip to content

Commit

Permalink
add emp role permission check
Browse files Browse the repository at this point in the history
  • Loading branch information
xxl4 committed Sep 27, 2023
1 parent eb3e0cf commit 298299c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Middleware/Permission.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public function handle(Request $request, \Closure $next, ...$args)
return $next($request);
}

// add emp role group check todo


if (!Admin::user()->allPermissions()->first(function ($permission) use ($request) {
return $permission->shouldPassThrough($request);
})) {
Expand Down

0 comments on commit 298299c

Please sign in to comment.