-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow Space Manager to edit pages - MEED-6941 - Meeds-io/meeds#…
…2064 (#96) Prior to this change, a space host wasn't able to access the navigation setting of a space. This change will allow to do it and will hide the option to save a page template knowing that it's not accessible only for administrators.
- Loading branch information
Showing
6 changed files
with
10 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 0 additions & 45 deletions
45
layout-webapp/src/main/webapp/WEB-INF/conf/layout/features-configuration.xml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<%@page import="org.exoplatform.commons.api.settings.ExoFeatureService"%> | ||
<%@page import="io.meeds.layout.service.LayoutAclService"%> | ||
<%@page import="org.exoplatform.container.ExoContainerContext"%> | ||
<% | ||
ExoFeatureService featureService = ExoContainerContext.getService(ExoFeatureService.class); | ||
boolean layoutAllAppsDrawerActive = featureService.isFeatureActiveForUser("LayoutAllAppsDrawer", request.getRemoteUser()); | ||
LayoutAclService aclService = ExoContainerContext.getService(LayoutAclService.class); | ||
boolean isAdministrator = aclService.isAdministrator(request.getRemoteUser()); | ||
%> | ||
<div class="VuetifyApp"> | ||
<div id="layoutEditor"> | ||
<script type="text/javascript"> | ||
require(['PORTLET/layout/LayoutEditor'], app => app.init()); | ||
eXo.env.portal.layoutAllAppsDrawer = <%=layoutAllAppsDrawerActive%>; | ||
eXo.env.portal.isAdministrator = <%=isAdministrator%>; | ||
</script> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters