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

Last change on this file since bcb4acc was 1e7126f, checked in by DenicaKj <dkorvezir@…>, 15 months ago

fix

  • Property mode set to 100644
File size: 268 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, ROLE_WORKER;
9
10 @Override
11 public String getAuthority() {
12 return name();
13 }
14}
Note: See TracBrowser for help on using the repository browser.