Automatically add "registered" rank to all registered users. Closes #48
This commit is contained in:
parent
81a7806629
commit
bc1cc8265f
|
@ -617,6 +617,10 @@ public final class User {
|
|||
grantedRanks.add(grantedRank);
|
||||
}
|
||||
|
||||
if (registeredAt != null) {
|
||||
grantedRanks.add(Rank.findById("registered"));
|
||||
}
|
||||
|
||||
if (grantedRanks.isEmpty()) {
|
||||
return ImmutableList.of(Rank.findById("default"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue