source: src/main/java/com/example/moviezone/model/Role.java@ 7215773

Last change on this file since 7215773 was ac25203, checked in by DenicaKj <dkorvezir@…>, 22 months ago

Spring Security

  • Property mode set to 100644
File size: 255 bytes
Line 
1package com.example.moviezone.model;
2
3
4import org.springframework.security.core.GrantedAuthority;
5
6public 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.