From b1c7d6f695a5a378ff9808fb243ca0178da86e9b Mon Sep 17 00:00:00 2001
From: Guillaume Heurtier <guillaume.heurtier@maarch.org>
Date: Mon, 7 Oct 2019 16:47:37 +0200
Subject: [PATCH] FEAT #11814 TIME 0:10 remove check user status

---
 src/app/entity/controllers/ListInstanceController.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/app/entity/controllers/ListInstanceController.php b/src/app/entity/controllers/ListInstanceController.php
index e1a19ecce5a..32f48781d90 100755
--- a/src/app/entity/controllers/ListInstanceController.php
+++ b/src/app/entity/controllers/ListInstanceController.php
@@ -156,9 +156,9 @@ class ListInstanceController
 
                 if ($instance['item_type'] == 'user_id') {
                     $user = UserModel::getByLogin(['login' => $instance['item_id']]);
-                    if (empty($user) || $user['status'] != "OK") {
+                    if (empty($user)) {
                         DatabaseModel::rollbackTransaction();
-                        return ['errors' => 'User not found or not active', 'code' => 400];
+                        return ['errors' => 'User not found', 'code' => 404];
                     }
                 } elseif ($instance['item_type'] == 'entity_id') {
                     $entity = EntityModel::getByEntityId(['entityId' => $instance['item_id']]);
-- 
GitLab