mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Use class name instead
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
9f5b264e04
commit
196db9718e
|
@ -19,7 +19,7 @@ class DeleteUserRequest extends FormRequest
|
|||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return Gate::allows('delete', new User);
|
||||
return Gate::allows('delete', User::class);
|
||||
}
|
||||
|
||||
public function prepareForValidation(): void
|
||||
|
|
Loading…
Reference in a new issue