source:
src/main/java/com/example/moviezone/model/Role.java@
73f0dbc
Last change on this file since 73f0dbc was ac25203, checked in by , 22 months ago | |
---|---|
|
|
File size: 255 bytes |
Line | |
---|---|
1 | package com.example.moviezone.model; |
2 | |
3 | |
4 | import org.springframework.security.core.GrantedAuthority; |
5 | |
6 | public enum Role implements GrantedAuthority { |
7 | |
8 | ROLE_USER, ROLE_ADMIN; |
9 | |
10 | @Override |
11 | public String getAuthority() { |
12 | return name(); |
13 | } |
14 | } |
Note:
See TracBrowser
for help on using the repository browser.