mirror of
https://github.com/netdata/netdata.git
synced 2025-04-13 09:11:50 +00:00
Public NC Spaces access fix (#17492)
remove the check about mismatched spaces, to support signed-in users in public spaces
This commit is contained in:
parent
10685dff66
commit
063e019fcc
1 changed files with 0 additions and 5 deletions
|
@ -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?");
|
||||
|
|
Loading…
Add table
Reference in a new issue