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,6 +42,8 @@ public void reply() throws IOException {
|
|||
requestError("Assess denied");
|
||||
return;
|
||||
}
|
||||
if(!clientData.permissions.canAdmin)
|
||||
{
|
||||
for (ClientProfile p : server.getProfiles()) {
|
||||
if (!clientData.profile.getTitle().equals(p.getTitle())) continue;
|
||||
if (!p.isWhitelistContains(clientData.username)) {
|
||||
|
@ -49,6 +51,8 @@ public void reply() throws IOException {
|
|||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
writeNoError(output);
|
||||
|
||||
// Write update hdir
|
||||
|
|
Loading…
Reference in a new issue