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