main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
265 bytes
|
Rev | Line | |
---|
[d24f17c] | 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.