We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ce158a commit 8b7121fCopy full SHA for 8b7121f
app/Services/AccountService.php
@@ -23,7 +23,7 @@ public static function get($id, $softFail = false)
23
$fractal = new Fractal\Manager();
24
$fractal->setSerializer(new ArraySerializer());
25
$profile = Profile::find($id);
26
- if(!$profile) {
+ if(!$profile || $profile->status === 'delete') {
27
if($softFail) {
28
return null;
29
}
0 commit comments