Ignore:
Timestamp:
01/05/23 04:11:40 (23 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
1bd8d1e
Parents:
7d43957
Message:

Added admin view of pending roles and approve functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/autopartz/model/Warehouseman.java

    r7d43957 r676144b  
    3939        if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) return false;
    4040        Warehouseman that = (Warehouseman) o;
    41         return ID_user != null && Objects.equals(ID_user, that.ID_user);
     41        return id != null && Objects.equals(id, that.id);
    4242    }
    4343
     
    4848    @Override
    4949    public Collection<? extends GrantedAuthority> getAuthorities() {
    50         if(employed_from==defaultEmployedFrom)
     50        if(Objects.equals(employed_from, defaultEmployedFrom))
    5151            return Collections.singletonList(Role.ROLE_PENDING_WAREHOUSEMAN);
    5252        else
Note: See TracChangeset for help on using the changeset viewer.