Skip to content

Commit

Permalink
feat: Add Spaces Administrators by Template - MEED-7751 - Meeds-io/MI…
Browse files Browse the repository at this point in the history
…Ps#160 (#175)

This change will allow to designate a space template super administrator
in replacement to the previous Spaces Administrators concept, which
wasn't related to the used Space Template to create the space.
  • Loading branch information
boubaker authored and exo-swf committed Nov 18, 2024
1 parent eecd469 commit cf7cdfe
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ private Poll postPollActivity(String message,
return pollStorage.updatePoll(createdPoll);
}

private boolean canViewPoll(Space pollSpace, org.exoplatform.services.security.Identity currentIdentity) {
return spaceService.isMember(pollSpace, currentIdentity.getUserId()) || currentIdentity.isMemberOf(userACL.getAdminGroups())
private boolean canViewPoll(Space space, org.exoplatform.services.security.Identity currentIdentity) {
return spaceService.isMember(space, currentIdentity.getUserId()) || currentIdentity.isMemberOf(userACL.getAdminGroups())
|| StringUtils.equals(userACL.getSuperUser(), currentIdentity.getUserId())
|| spaceService.isSuperManager(currentIdentity.getUserId());
|| spaceService.isSuperManager(space, currentIdentity.getUserId());
}
}

0 comments on commit cf7cdfe

Please sign in to comment.