Ignore:
Timestamp:
02/03/23 23:11:04 (22 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
eb226b2
Parents:
1b248e4
Message:

Spring Security

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/moviezone/model/Customer.java

    r1b248e4 rac25203  
    77import lombok.Setter;
    88import lombok.ToString;
     9import org.springframework.security.core.GrantedAuthority;
     10
     11import java.util.Collection;
     12import java.util.Collections;
    913
    1014@Entity
     
    1923    Integer points;
    2024
     25    @Override
     26    public Collection<? extends GrantedAuthority> getAuthorities() {
     27        return Collections.singletonList(Role.ROLE_ADMIN);
     28    }
    2129
    2230}
Note: See TracChangeset for help on using the changeset viewer.