aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server/security/entities
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/security/entities')
-rw-r--r--juick-server/src/main/java/com/juick/server/security/entities/JuickUser.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/juick-server/src/main/java/com/juick/server/security/entities/JuickUser.java b/juick-server/src/main/java/com/juick/server/security/entities/JuickUser.java
index 6cc002ae..fd06b65b 100644
--- a/juick-server/src/main/java/com/juick/server/security/entities/JuickUser.java
+++ b/juick-server/src/main/java/com/juick/server/security/entities/JuickUser.java
@@ -12,18 +12,18 @@ import java.util.Collections;
* Created by aalexeev on 11/21/16.
*/
public class JuickUser implements UserDetails {
- private static final GrantedAuthority ROLE_USER = new SimpleGrantedAuthority("ROLE_USER");
+ public static final GrantedAuthority ROLE_USER = new SimpleGrantedAuthority("ROLE_USER");
+ public static final Collection<? extends GrantedAuthority> USER_AUTHORITY = Collections.singletonList(ROLE_USER);
private final com.juick.User user;
-
public JuickUser(com.juick.User user) {
this.user = user;
}
@Override
public Collection<? extends GrantedAuthority> getAuthorities() {
- return Collections.singletonList(ROLE_USER);
+ return USER_AUTHORITY;
}
@Override