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