From 063e019fcc42171607e7f13fa8a857cf69e044c5 Mon Sep 17 00:00:00 2001
From: Costa Tsaousis <costa@netdata.cloud>
Date: Tue, 23 Apr 2024 12:30:02 +0300
Subject: [PATCH] Public NC Spaces access fix (#17492)

remove the check about mismatched spaces, to support signed-in users in public spaces
---
 src/web/api/web_api.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/web/api/web_api.c b/src/web/api/web_api.c
index 10a00e22e1..4e936be5b6 100644
--- a/src/web/api/web_api.c
+++ b/src/web/api/web_api.c
@@ -22,11 +22,6 @@ int web_client_api_request_vX(RRDHOST *host, struct web_client *w, char *url_pat
     w->access = HTTP_ACCESS_ALL;
 #endif
 
-    if((w->access & HTTP_ACCESS_SIGNED_ID) && !(w->access & HTTP_ACCESS_SAME_SPACE)) {
-        // this should never happen: a signed-in user from a different space
-        return web_client_permission_denied(w);
-    }
-
     if(unlikely(!url_path_endpoint || !*url_path_endpoint)) {
         buffer_flush(w->response.data);
         buffer_sprintf(w->response.data, "Which API command?");