Skip to content

Commit

Permalink
[#kbss-cvut/23ava-distribution/133] Fix modification author if not admin
Browse files Browse the repository at this point in the history
  • Loading branch information
blcham committed Jul 23, 2024
1 parent d467e96 commit 3111977
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ private void setImportedRecordProvenance(User currentUser, Date now, Optional<Re
PatientRecord record) {
if (!currentUser.isAdmin()) {
record.setAuthor(currentUser);
record.setLastModifiedBy(currentUser);
record.setInstitution(currentUser.getInstitution());
record.setDateCreated(now);
targetPhase.ifPresentOrElse(record::setPhase, () -> record.setPhase(RecordPhase.open));
Expand Down

0 comments on commit 3111977

Please sign in to comment.