Guest User

Untitled

a guest
May 20th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. // Check to make sure the user adding the collection is a project admin, or a system admin
  2. Person currentUser = getAuthenticatedUser();
  3. if ( !relationshipService.getDepositorsForCollection(currentCollection)
  4. .contains(currentUser)) {
  5. permissionDeniedMsgs.add(new SimpleMessage("Current user does not have depositing privilege to this collection."));
  6. return returnToCollectionView(currentCollectionId);
  7. }
Add Comment
Please, Sign In to add comment