Update UpdateProfileRequest
This commit is contained in:
parent
649a0319d1
commit
79864ef4fd
@ -14,7 +14,7 @@ class UpdateProfileRequest extends FormRequest
|
||||
public function authorize(): bool
|
||||
{
|
||||
return (bool) $this->user() &&
|
||||
$this->user()->status === 1 &&
|
||||
$this->user()->profile->status == 1 &&
|
||||
$this->user()->profile_id;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user