Fix User#getRanksScoped registered logic
This commit is contained in:
parent
57729c17e0
commit
bc92c39ce0
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user