Apply suggestion
Co-authored-by: Krzysztof Rewak <krzysztof.rewak@gmail.com>
This commit is contained in:
		| @@ -13,8 +13,8 @@ class CreateVacationRequestRequest extends FormRequest | ||||
|  | ||||
|     public function authorize(): bool | ||||
|     { | ||||
|         return null === $this->get("user") || | ||||
|             (int)$this->get("user") === $this->user()->id || | ||||
|         return ($this->get("user") === null) || | ||||
|             ((int)$this->get("user") === $this->user()->id) || | ||||
|             $this->user()->can("createOnBehalfOfEmployee", VacationRequest::class); | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user