stuff
This commit is contained in:
parent
46eda73347
commit
b76eead314
@ -9,7 +9,7 @@ import java.util.Set;
|
||||
|
||||
public final class UserActor implements Actor {
|
||||
|
||||
private static final Set<String> authorizedUserGrants = ImmutableSet.copyOf(APIv3.getConfig().getProperty("auth.permittedUserRanks").split(","));
|
||||
private static final Set<String> permittedUserRanks = ImmutableSet.copyOf(APIv3.getConfig().getProperty("auth.permittedUserRanks").split(","));
|
||||
|
||||
@Getter private final User user;
|
||||
// We use Boolean here so we can have null = not calculated;
|
||||
@ -24,7 +24,7 @@ public final class UserActor implements Actor {
|
||||
return cachedAuthorized;
|
||||
} else {
|
||||
String highestRankId = user.getHighestRank().getId();
|
||||
cachedAuthorized = authorizedUserGrants.contains(highestRankId);
|
||||
cachedAuthorized = permittedUserRanks.contains(highestRankId);
|
||||
return cachedAuthorized;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user