mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-14 22:25:23 -05:00
Created a middleware for checking permissions in admin controllers, so I cannot forget to add permission checks.
Changed some descriptions of the admin tools for Miraak. Aded some more Permissions and added a moderator role.
This commit is contained in:
@@ -12,7 +12,7 @@ class HandleModerationRequest extends FormRequest
|
||||
|
||||
public function authorize(): bool
|
||||
{
|
||||
return Auth::check() && Auth::user()->can(Permissions::VIEW_USERS->value);
|
||||
return Auth::check();
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
|
||||
Reference in New Issue
Block a user