summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@netdata.cloud>2024-04-23 12:30:02 +0300
committerGitHub <noreply@github.com>2024-04-23 12:30:02 +0300
commit063e019fcc42171607e7f13fa8a857cf69e044c5 (patch)
tree68dd1409888b017a666015c09c59fe0d00eba87e /src
parent10685dff6680961c712ee2b6daaff0ebe3956351 (diff)
Public NC Spaces access fix (#17492)
remove the check about mismatched spaces, to support signed-in users in public spaces
Diffstat (limited to 'src')
-rw-r--r--src/web/api/web_api.c5
1 files changed, 0 insertions, 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?");