Skip to content

Commit

Permalink
Add missing Elide check and reorder the rest
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed Nov 4, 2019
1 parent 503d483 commit fb5fbf0
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/main/java/com/faforever/api/config/elide/ElideConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
import com.faforever.api.security.elide.permission.WriteAvatarCheck;
import com.faforever.api.security.elide.permission.WriteEmailDomainBanCheck;
import com.faforever.api.security.elide.permission.WriteMatchmakerMapCheck;
import com.faforever.api.security.elide.permission.WriteMessageCheck;
import com.faforever.api.security.elide.permission.WriteNewsPostCheck;
import com.faforever.api.security.elide.permission.WriteTutorialCheck;
import com.faforever.api.security.elide.permission.WriteUserGroupCheck;
import com.fasterxml.jackson.databind.ObjectMapper;
Expand Down Expand Up @@ -108,21 +110,23 @@ public EntityDictionary entityDictionary() {
checks.put(BooleanChange.TO_FALSE_EXPRESSION, BooleanChange.ToFalse.class);
checks.put(BooleanChange.TO_TRUE_EXPRESSION, BooleanChange.ToTrue.class);
checks.put(IsInAwaitingState.EXPRESSION, IsInAwaitingState.Inline.class);
checks.put(UserGroupPublicCheck.EXPRESSION, UserGroupPublicCheck.class);
checks.put(AdminAccountBanCheck.EXPRESSION, AdminAccountBanCheck.class);
checks.put(AdminAccountNoteCheck.EXPRESSION, AdminAccountNoteCheck.class);
checks.put(AdminMapCheck.EXPRESSION, AdminMapCheck.class);
checks.put(AdminModCheck.EXPRESSION, AdminModCheck.class);
checks.put(AdminModerationReportCheck.EXPRESSION, AdminModerationReportCheck.class);
checks.put(AdminVoteCheck.EXPRESSION, AdminVoteCheck.class);
checks.put(ReadAccountPrivateDetailsCheck.EXPRESSION, ReadAccountPrivateDetailsCheck.class);
checks.put(ReadTeamkillReportCheck.EXPRESSION, ReadTeamkillReportCheck.class);
checks.put(ReadUserGroupCheck.EXPRESSION, ReadUserGroupCheck.class);
checks.put(AdminVoteCheck.EXPRESSION, AdminVoteCheck.class);
checks.put(WriteAvatarCheck.EXPRESSION, WriteAvatarCheck.class);
checks.put(WriteEmailDomainBanCheck.EXPRESSION, WriteEmailDomainBanCheck.class);
checks.put(WriteMatchmakerMapCheck.EXPRESSION, WriteMatchmakerMapCheck.class);
checks.put(WriteMessageCheck.EXPRESSION, WriteMessageCheck.class);
checks.put(WriteNewsPostCheck.EXPRESSION, WriteNewsPostCheck.class);
checks.put(WriteTutorialCheck.EXPRESSION, WriteTutorialCheck.class);
checks.put(WriteEmailDomainBanCheck.EXPRESSION, WriteEmailDomainBanCheck.class);
checks.put(WriteAvatarCheck.EXPRESSION, WriteAvatarCheck.class);
checks.put(AdminMapCheck.EXPRESSION, AdminMapCheck.class);
checks.put(AdminModCheck.EXPRESSION, AdminModCheck.class);
checks.put(WriteUserGroupCheck.EXPRESSION, WriteUserGroupCheck.class);
checks.put(UserGroupPublicCheck.EXPRESSION, UserGroupPublicCheck.class);

return new EntityDictionary(checks);
}
Expand Down

0 comments on commit fb5fbf0

Please sign in to comment.