summaryrefslogtreecommitdiffstats
path: root/registry
diff options
context:
space:
mode:
authorChris Akritidis <43294513+cakrit@users.noreply.github.com>2019-03-04 09:36:02 +0100
committerGitHub <noreply@github.com>2019-03-04 09:36:02 +0100
commit8a719324519ca9373e935241164b97bef052b168 (patch)
treec55cfd0c6a89df184fe26ecbbc072bfb7a84a1b8 /registry
parenteccf0b9ebb7bf4b456ee7b902e699c70dc60ba1c (diff)
Registry delete should allow deleting the host we are looking at (#5537)
* Remove check on whether a server delete request comes from the same server we are looking at
Diffstat (limited to 'registry')
-rw-r--r--registry/registry_internals.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/registry/registry_internals.c b/registry/registry_internals.c
index b54b901427..3de6dd17b8 100644
--- a/registry/registry_internals.c
+++ b/registry/registry_internals.c
@@ -126,6 +126,11 @@ REGISTRY_PERSON_URL *registry_verify_request(char *person_guid, char *machine_gu
info("Registry Request Verification: URL not found for person, person: '%s', machine '%s', url '%s'", person_guid, machine_guid, url);
return NULL;
}
+ //else if (pu->machine != m) {
+ // info("Registry Request Verification: Machine mismatch: person: '%s', machine requested='%s' <> loaded='%s', url '%s'", person_guid, machine_guid, pu->machine->guid, url);
+ // return NULL;
+ //}
+
return pu;
}
@@ -171,11 +176,13 @@ REGISTRY_PERSON *registry_request_delete(char *person_guid, char *machine_guid,
delete_url = registry_fix_url(delete_url, NULL);
// make sure the user is not deleting the url it uses
+ /*
if(!strcmp(delete_url, pu->url->url)) {
info("Registry Delete Request: delete URL is the one currently accessed, person: '%s', machine '%s', url '%s', delete url '%s'"
, p->guid, m->guid, pu->url->url, delete_url);
return NULL;
}
+ */
REGISTRY_PERSON_URL *dpu = registry_person_url_index_find(p, delete_url);
if(!dpu) {