Fixed packet issue - copied 1:1 habbo behaviour on group admins for moderating threads

This commit is contained in:
Harmonic 2022-04-12 18:51:42 -07:00
parent 8fc91fc875
commit 8ac9d130bd

View File

@ -153,7 +153,12 @@ public class GuildForumDataComposer extends MessageComposer {
this.response.appendString(errorModerate); this.response.appendString(errorModerate);
this.response.appendString(""); //citizen this.response.appendString(""); //citizen
this.response.appendBoolean(guild.getOwnerId() == this.habbo.getHabboInfo().getId()); //Forum Settings this.response.appendBoolean(guild.getOwnerId() == this.habbo.getHabboInfo().getId()); //Forum Settings
this.response.appendBoolean(guild.getOwnerId() == this.habbo.getHabboInfo().getId() || isStaff); //Can Mod (staff) if (guild.canModForum().state == 3) {
this.response.appendBoolean(guild.getOwnerId() == this.habbo.getHabboInfo().getId() || isStaff);
}
else {
this.response.appendBoolean(guild.getOwnerId() == this.habbo.getHabboInfo().getId() || isStaff || isAdmin); //Can Mod (staff)
}
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
return new ConnectionErrorComposer(500).compose(); return new ConnectionErrorComposer(500).compose();