source:
src/main/java/com/example/moviezone/model/Role.java@
2269653
Last change on this file since 2269653 was ac25203, checked in by , 23 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.