Changeset ac25203 for src/main/java/com/example/moviezone/model/Worker.java
- Timestamp:
- 02/03/23 23:11:04 (22 months ago)
- Branches:
- master
- Children:
- eb226b2
- Parents:
- 1b248e4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/model/Worker.java
r1b248e4 rac25203 5 5 import lombok.Setter; 6 6 import lombok.ToString; 7 import org.springframework.security.core.GrantedAuthority; 8 9 import java.util.Collection; 10 import java.util.Collections; 7 11 8 12 @Entity … … 21 25 @ManyToOne() 22 26 Cinema cinema; 27 @Override 28 public Collection<? extends GrantedAuthority> getAuthorities() { 29 return Collections.singletonList(Role.ROLE_ADMIN); 30 } 23 31 24 32 }
Note:
See TracChangeset
for help on using the changeset viewer.