Last change
on this file since df4089c was 9dd526f, checked in by andrejTavchioski <andrej.tavchioski@…>, 2 years ago |
backend refactoring
|
-
Property mode
set to
100644
|
File size:
275 bytes
|
Rev | Line | |
---|
[9dd526f] | 1 | package parkup.data.enumarations;
|
---|
| 2 |
|
---|
| 3 | import org.springframework.security.core.GrantedAuthority;
|
---|
| 4 |
|
---|
| 5 | public enum UserRole implements GrantedAuthority {
|
---|
| 6 | GUEST,
|
---|
| 7 | REG_USER,
|
---|
| 8 | WORKER,
|
---|
| 9 | ADMIN;
|
---|
| 10 |
|
---|
| 11 | @Override
|
---|
| 12 | public String getAuthority() {
|
---|
| 13 | return name();
|
---|
| 14 | }
|
---|
| 15 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.