Skip to content

Commit

Permalink
Add RdP to preview application
Browse files Browse the repository at this point in the history
  • Loading branch information
mspasiano committed May 16, 2023
1 parent 77efea0 commit f38602a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,11 @@ protected Folder createInitialFolder(CMISUser loginUser, Map<String, Object> mod
}

public boolean isApplicationPreview(boolean preview, CMISUser loginUser, Folder call) {
return preview && (loginUser.isAdmin() || call.getPropertyValue(PropertyIds.CREATED_BY).equals(loginUser.getId()));
return preview && (
loginUser.isAdmin() ||
call.getPropertyValue(PropertyIds.CREATED_BY).equals(loginUser.getId()) ||
callService.isMemberOfRDPGroup(loginUser, call)
);
}

public Folder load(Session currentCMISSession, String callId,
Expand Down

0 comments on commit f38602a

Please sign in to comment.