Skip to content

Commit

Permalink
WARNING - NEEDS TO BE ADDED BACK. trying to avoid local error
Browse files Browse the repository at this point in the history
  • Loading branch information
raprasad committed Sep 23, 2016
1 parent eb7e5e5 commit eea4655
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,14 @@ public Set<Permission> permissionsFor( DataverseRequest req, DvObject dvo ) {

// Add permissions specifically given to the user
permissions.addAll( permissionsForSingleRoleAssignee(req.getUser(),dvo) );

/*
Set<Group> groups = groupService.groupsFor(req,dvo);
// Add permissions gained from groups
for ( Group g : groups ) {
permissions.addAll( permissionsForSingleRoleAssignee(g,dvo) );
}
*/

if ( ! req.getUser().isAuthenticated() ) {
permissions.removeAll( PERMISSIONS_FOR_AUTHENTICATED_USERS_ONLY );
Expand Down

0 comments on commit eea4655

Please sign in to comment.