0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-13 09:11:50 +00:00

Public NC Spaces access fix ()

remove the check about mismatched spaces, to support signed-in users in public spaces
This commit is contained in:
Costa Tsaousis 2024-04-23 12:30:02 +03:00 committed by GitHub
parent 10685dff66
commit 063e019fcc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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?");