getDelThreadStatus() === 'OPEN' && $delegation->getUsrUid() === $_SESSION['USER_LOGGED']; $result = ["check" => $check]; } catch (\Exception $e) { $result = [ 'error' => $e->getMessage(), ]; http_response_code(500); } echo G::json_encode($result);