Ignore:
Timestamp:
09/04/21 11:14:25 (3 years ago)
Author:
NikolaCenevski <cenevskinikola@…>
Branches:
master
Children:
ab49338
Parents:
194776a
Message:

Dodadeno posts to be approved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/it/finki/charitable/entities/DonationPost.java

    r194776a r5306751  
    3737    private LocalDate dateDue;
    3838    private String bankAccount;
     39    private Boolean approved;
    3940
    4041    @ElementCollection
     
    7475
    7576        List<String> photoPaths = new ArrayList<>();
     77
    7678        for(String path: images) {
     79            photoPaths.add("../../../../post-photos/" + id + "/" + path);
     80        }
     81
     82        for(String path: moderatorImages) {
    7783            photoPaths.add("../../../../moderator-photos/" + id + "/" + path);
    7884        }
     
    158164    }
    159165
     166    public Boolean getApproved() {
     167        return approved;
     168    }
     169
     170    public void setApproved(Boolean approved) {
     171        this.approved = approved;
     172    }
     173
    160174    public List<String> getPhoneNumbers() {
    161175        return phoneNumbers;
Note: See TracChangeset for help on using the changeset viewer.