Администраторы игнорируют 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,6 +42,8 @@ public void reply() throws IOException {
requestError("Assess denied"); requestError("Assess denied");
return; return;
} }
if(!clientData.permissions.canAdmin)
{
for (ClientProfile p : server.getProfiles()) { for (ClientProfile p : server.getProfiles()) {
if (!clientData.profile.getTitle().equals(p.getTitle())) continue; if (!clientData.profile.getTitle().equals(p.getTitle())) continue;
if (!p.isWhitelistContains(clientData.username)) { if (!p.isWhitelistContains(clientData.username)) {
@ -49,6 +51,8 @@ public void reply() throws IOException {
return; return;
} }
} }
}
writeNoError(output); writeNoError(output);
// Write update hdir // Write update hdir