@cryptotaxi247 / netdata-1 / commits / 063e019fc

Public NC Spaces access fix (#17492)

remove the check about mismatched spaces, to support signed-in users in public spaces

Costa Tsaousis committed Apr 23, 2024 at 12:30 UTC 063e019fcc42171607e7f13fa8a857cf69e044c5
1 file changed -5
src/web/api/web_api.c
-5
@@ -22,11 +22,6 @@ int web_client_api_request_vX(RRDHOST *host, struct web_client *w, char *url_pat
22 w->access = HTTP_ACCESS_ALL;
23 #endif
24
25 - if((w->access & HTTP_ACCESS_SIGNED_ID) && !(w->access & HTTP_ACCESS_SAME_SPACE)) {
26 - // this should never happen: a signed-in user from a different space
27 - return web_client_permission_denied(w);
28 - }
29 -
25 if(unlikely(!url_path_endpoint || !*url_path_endpoint)) {
26 buffer_flush(w->response.data);
27 buffer_sprintf(w->response.data, "Which API command?");