Skip to content

Commit

Permalink
Revert "FIX: [bug] [ANALYTICS] space host have access to action menu …
Browse files Browse the repository at this point in the history
…of analytics page - EXO-75352 - Meeds-io/meeds#2585"

This reverts commit 7b89edb.
  • Loading branch information
mkrout committed Nov 18, 2024
1 parent 4cf1e64 commit bd19572
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ protected boolean canModifySettings(PortletRequest request) {
return cacheChartModificationAccessPermission(portletSession, true);
}
}
Space space = SpaceUtils.getSpaceByContext();
if (space != null) {
boolean canModify = getSpaceService().isSuperManager(userId) || getSpaceService().isManager(space, userId);
return cacheChartModificationAccessPermission(portletSession, canModify);
}
return cacheChartModificationAccessPermission(portletSession, false);
}

Expand Down

0 comments on commit bd19572

Please sign in to comment.