diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/response/update/UpdateResponse.java b/LaunchServer/src/main/java/ru/gravit/launchserver/response/update/UpdateResponse.java index 8199d787..925700da 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/response/update/UpdateResponse.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/response/update/UpdateResponse.java @@ -42,13 +42,17 @@ public void reply() throws IOException { requestError("Assess denied"); return; } - for (ClientProfile p : server.getProfiles()) { - if (!clientData.profile.getTitle().equals(p.getTitle())) continue; - if (!p.isWhitelistContains(clientData.username)) { - requestError("You don't download this folder"); - return; + if(!clientData.permissions.canAdmin) + { + for (ClientProfile p : server.getProfiles()) { + if (!clientData.profile.getTitle().equals(p.getTitle())) continue; + if (!p.isWhitelistContains(clientData.username)) { + requestError("You don't download this folder"); + return; + } } } + writeNoError(output); // Write update hdir