Explorar el Código

Update AccountService, fix delete status

Daniel Supernault hace 2 años
padre
commit
8b7121f9fb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
 				}