Remove zone check in ApiEvents::UpdateRepositoryAPIHandler.

Refs #6107
This commit is contained in:
Gunnar Beutner 2014-05-08 15:27:16 +02:00
parent 87bcb168d7
commit b36b03cac1
1 changed files with 0 additions and 5 deletions

View File

@ -929,11 +929,6 @@ Value ApiEvents::UpdateRepositoryAPIHandler(const MessageOrigin& origin, const D
if (!params) if (!params)
return Empty; return Empty;
Zone::Ptr zone = Zone::GetByName(params->Get("zone"));
if (!zone || (origin.FromZone && !origin.FromZone->CanAccessObject(zone)))
return Empty;
String repositoryFile = GetRepositoryDir() + SHA256(params->Get("endpoint")); String repositoryFile = GetRepositoryDir() + SHA256(params->Get("endpoint"));
String repositoryTempFile = repositoryFile + ".tmp"; String repositoryTempFile = repositoryFile + ".tmp";