source: source/MovieZilla-master/src/main/java/com/example/demo/model/Role.java

Last change on this file was fc7ec52, checked in by darkopopovski <darkopopovski39@…>, 2 years ago

all files

  • Property mode set to 100644
File size: 276 bytes
Line 
1package com.example.demo.model;
2
3import org.springframework.security.core.GrantedAuthority;
4
5public enum Role implements GrantedAuthority {
6
7
8 Client,
9 ROLE_CLIENT
10, ROLE_EMPLOYEE;
11
12 @Override
13 public String getAuthority() {
14 return name();
15 }
16
17
18}
Note: See TracBrowser for help on using the repository browser.