source: src/main/java/com/example/autopartz/model/Role.java@ ae042f4

main
Last change on this file since ae042f4 was ae042f4, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 18 months ago

Configured spring security, changed spring version

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