Skip to content

Commit

Permalink
FIX: Space host have access to action menu of analytics page - EXO-75352
Browse files Browse the repository at this point in the history
 - Meeds-io/meeds#2585

Prior to this fix, space managers were able to edit analytics settings in spaces
this commit change this to grant this permission to members having "Edit navigation" permission.
  • Loading branch information
mkrout committed Dec 9, 2024
1 parent d79c383 commit e96e9c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ protected boolean canModifySettings(PortletRequest request) {
}
Space space = SpaceUtils.getSpaceByContext();
if (space != null) {
boolean canModify = getSpaceService().canManageSpace(space, userId);
boolean canModify = getSpaceService().canManageSpaceLayout(space, userId);
return cacheChartModificationAccessPermission(portletSession, canModify);
}
return cacheChartModificationAccessPermission(portletSession, false);
Expand Down

0 comments on commit e96e9c7

Please sign in to comment.