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