diff --git a/layout-webapp/src/main/webapp/WEB-INF/conf/configuration.xml b/layout-webapp/src/main/webapp/WEB-INF/conf/configuration.xml index 3554f55bb..fe806a361 100644 --- a/layout-webapp/src/main/webapp/WEB-INF/conf/configuration.xml +++ b/layout-webapp/src/main/webapp/WEB-INF/conf/configuration.xml @@ -25,6 +25,5 @@ xmlns="http://www.exoplaform.org/xml/ns/kernel_1_2.xsd"> war:/conf/layout/dynamic-container-configuration.xml - war:/conf/layout/features-configuration.xml diff --git a/layout-webapp/src/main/webapp/WEB-INF/conf/layout/dynamic-container-configuration.xml b/layout-webapp/src/main/webapp/WEB-INF/conf/layout/dynamic-container-configuration.xml index ef18cd99d..a7f82ba15 100644 --- a/layout-webapp/src/main/webapp/WEB-INF/conf/layout/dynamic-container-configuration.xml +++ b/layout-webapp/src/main/webapp/WEB-INF/conf/layout/dynamic-container-configuration.xml @@ -46,10 +46,7 @@ - manager:/platform/administrators - - - editor:/platform/web-contributors + *:/platform/users diff --git a/layout-webapp/src/main/webapp/WEB-INF/conf/layout/features-configuration.xml b/layout-webapp/src/main/webapp/WEB-INF/conf/layout/features-configuration.xml deleted file mode 100644 index 74ebcb662..000000000 --- a/layout-webapp/src/main/webapp/WEB-INF/conf/layout/features-configuration.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - MeedsFeatureProperties - org.exoplatform.container.ExtendedPropertyConfigurator - - - MeedsFeatureProperties - - - - - - LayoutEditorChangesAnnounced - org.exoplatform.container.ExtendedPropertyConfigurator - - - LayoutEditorChangesAnnounced - - - - - diff --git a/layout-webapp/src/main/webapp/WEB-INF/jsp/layoutEditor.jsp b/layout-webapp/src/main/webapp/WEB-INF/jsp/layoutEditor.jsp index bf35b935a..b09334627 100644 --- a/layout-webapp/src/main/webapp/WEB-INF/jsp/layoutEditor.jsp +++ b/layout-webapp/src/main/webapp/WEB-INF/jsp/layoutEditor.jsp @@ -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()); %>
diff --git a/layout-webapp/src/main/webapp/WEB-INF/jsp/siteNavigation.jsp b/layout-webapp/src/main/webapp/WEB-INF/jsp/siteNavigation.jsp index baa73879f..378cad061 100644 --- a/layout-webapp/src/main/webapp/WEB-INF/jsp/siteNavigation.jsp +++ b/layout-webapp/src/main/webapp/WEB-INF/jsp/siteNavigation.jsp @@ -19,6 +19,7 @@ diff --git a/layout-webapp/src/main/webapp/vue-app/layout-editor/components/toolbar/Toolbar.vue b/layout-webapp/src/main/webapp/vue-app/layout-editor/components/toolbar/Toolbar.vue index 10fab0a5a..0e85a1ad3 100644 --- a/layout-webapp/src/main/webapp/vue-app/layout-editor/components/toolbar/Toolbar.vue +++ b/layout-webapp/src/main/webapp/vue-app/layout-editor/components/toolbar/Toolbar.vue @@ -31,7 +31,7 @@ @@ -64,6 +64,9 @@ export default { }, }, computed: { + isAdministrator() { + return eXo.env.portal.isAdministrator; + }, defaultLanguage() { return eXo.env.portal.defaultLanguage; },