mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
Администраторы игнорируют profile whitelist
This commit is contained in:
parent
c8b4500f1d
commit
8d34ae76fc
1 changed files with 9 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue