Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Check to make sure the user adding the collection is a project admin, or a system admin
- Person currentUser = getAuthenticatedUser();
- if ( !relationshipService.getDepositorsForCollection(currentCollection)
- .contains(currentUser)) {
- permissionDeniedMsgs.add(new SimpleMessage("Current user does not have depositing privilege to this collection."));
- return returnToCollectionView(currentCollectionId);
- }
Add Comment
Please, Sign In to add comment