ソースを参照

Update AccountService, fix delete status

Daniel Supernault 2 年 前
コミット
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 = new Fractal\Manager();
 			$fractal->setSerializer(new ArraySerializer());
 			$fractal->setSerializer(new ArraySerializer());
 			$profile = Profile::find($id);
 			$profile = Profile::find($id);
-			if(!$profile) {
+			if(!$profile || $profile->status === 'delete') {
 				if($softFail) {
 				if($softFail) {
 					return null;
 					return null;
 				}
 				}