mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 17:58:59 +00:00
Update roles handling
This commit is contained in:
@@ -16,7 +16,7 @@ class IsAdmin
|
||||
*/
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
if (Auth::user() && Auth::user()->user_roles_id === 2) {
|
||||
if (Auth::user() && Auth::user()->hasRole('Admin')) {
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user