mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 02:01:33 +00:00
Fix typo in role name
This commit is contained in:
@@ -271,7 +271,7 @@ class InvitationController extends BasePageController
|
||||
public function cleanup(): JsonResponse
|
||||
{
|
||||
// Check if user is admin
|
||||
if (! auth()->user()->hasRole('admin')) {
|
||||
if (! auth()->user()->hasRole('Admin')) {
|
||||
abort(403, 'Unauthorized');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user