Просмотр исходного кода

Update AccountService, fix delete status

Daniel Supernault 2 лет назад
Родитель
Сommit
8b7121f9fb
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Services/AccountService.php

+ 1 - 1
app/Services/AccountService.php

@@ -23,7 +23,7 @@ class AccountService
 			$fractal = new Fractal\Manager();
 			$fractal->setSerializer(new ArraySerializer());
 			$profile = Profile::find($id);
-			if(!$profile) {
+			if(!$profile || $profile->status === 'delete') {
 				if($softFail) {
 					return null;
 				}