Fix User#getRanksScoped registered logic

This commit is contained in:
Colin McDonald 2016-07-17 17:47:04 -04:00
parent 57729c17e0
commit bc92c39ce0

View File

@ -617,12 +617,12 @@ public final class User {
grantedRanks.add(grantedRank); grantedRanks.add(grantedRank);
} }
if (registeredAt != null) { if (grantedRanks.isEmpty()) {
grantedRanks.add(Rank.findById("registered")); grantedRanks.add(Rank.findById("default"));
} }
if (grantedRanks.isEmpty()) { if (registeredAt != null) {
return ImmutableList.of(Rank.findById("default")); grantedRanks.add(Rank.findById("registered"));
} }
// This is to remove redundant ranks. Say they have mod, mod-plus, admin, and youtuber, // This is to remove redundant ranks. Say they have mod, mod-plus, admin, and youtuber,