mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
87bcb168d7
commit
b36b03cac1
@ -929,11 +929,6 @@ Value ApiEvents::UpdateRepositoryAPIHandler(const MessageOrigin& origin, const D
|
||||
if (!params)
|
||||
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 repositoryTempFile = repositoryFile + ".tmp";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user