Администраторы игнорируют profile whitelist

This commit is contained in:
Gravit 2019-01-02 22:34:18 +07:00
parent c8b4500f1d
commit 8d34ae76fc
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -42,13 +42,17 @@ public void reply() throws IOException {
requestError("Assess denied"); requestError("Assess denied");
return; return;
} }
for (ClientProfile p : server.getProfiles()) { if(!clientData.permissions.canAdmin)
if (!clientData.profile.getTitle().equals(p.getTitle())) continue; {
if (!p.isWhitelistContains(clientData.username)) { for (ClientProfile p : server.getProfiles()) {
requestError("You don't download this folder"); if (!clientData.profile.getTitle().equals(p.getTitle())) continue;
return; if (!p.isWhitelistContains(clientData.username)) {
requestError("You don't download this folder");
return;
}
} }
} }
writeNoError(output); writeNoError(output);
// Write update hdir // Write update hdir