syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject [syncope] 02/02: Removing unused SCHEMA_LIST
Date Thu, 30 May 2019 11:43:20 GMT
This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git

commit 92ed0d9cd10ede7026050b23a5cac9074cdf0418
Author: Francesco Chicchiriccò <ilgrosso@apache.org>
AuthorDate: Thu May 30 13:18:16 2019 +0200

    Removing unused SCHEMA_LIST
---
 .../src/main/java/org/apache/syncope/client/console/pages/BasePage.java | 2 +-
 .../org/apache/syncope/client/console/widgets/CompletenessWidget.java   | 2 +-
 .../java/org/apache/syncope/common/lib/types/StandardEntitlement.java   | 2 --
 3 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/client/console/src/main/java/org/apache/syncope/client/console/pages/BasePage.java
b/client/console/src/main/java/org/apache/syncope/client/console/pages/BasePage.java
index ba49f53..2aadd73 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/pages/BasePage.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/pages/BasePage.java
@@ -205,7 +205,7 @@ public class BasePage extends WebPage implements IAjaxIndicatorAware {
         liContainer = new WebMarkupContainer(getLIContainerId("types"));
         confULContainer.add(liContainer);
         link = BookmarkablePageLinkBuilder.build("types", Types.class);
-        MetaDataRoleAuthorizationStrategy.authorize(link, WebPage.RENDER, StandardEntitlement.SCHEMA_LIST);
+        MetaDataRoleAuthorizationStrategy.authorize(link, WebPage.RENDER, StandardEntitlement.ANYTYPECLASS_LIST);
         liContainer.add(link);
 
         liContainer = new WebMarkupContainer(getLIContainerId("security"));
diff --git a/client/console/src/main/java/org/apache/syncope/client/console/widgets/CompletenessWidget.java
b/client/console/src/main/java/org/apache/syncope/client/console/widgets/CompletenessWidget.java
index 5f26ffd..a4c5bb2 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/widgets/CompletenessWidget.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/widgets/CompletenessWidget.java
@@ -102,7 +102,7 @@ public class CompletenessWidget extends BaseWidget {
 
         types = BookmarkablePageLinkBuilder.build("types", Types.class);
         types.setOutputMarkupPlaceholderTag(true);
-        MetaDataRoleAuthorizationStrategy.authorize(types, WebPage.ENABLE, StandardEntitlement.SCHEMA_LIST);
+        MetaDataRoleAuthorizationStrategy.authorize(types, WebPage.ENABLE, StandardEntitlement.ANYTYPECLASS_LIST);
         actions.add(types);
         types.setVisible(
                 !confCompleteness.get(NumbersInfo.ConfItem.VIR_SCHEMA.name())
diff --git a/common/lib/src/main/java/org/apache/syncope/common/lib/types/StandardEntitlement.java
b/common/lib/src/main/java/org/apache/syncope/common/lib/types/StandardEntitlement.java
index 69f417a..3ca55a3 100644
--- a/common/lib/src/main/java/org/apache/syncope/common/lib/types/StandardEntitlement.java
+++ b/common/lib/src/main/java/org/apache/syncope/common/lib/types/StandardEntitlement.java
@@ -104,8 +104,6 @@ public final class StandardEntitlement {
 
     public static final String DYNREALM_DELETE = "DYNREALM_DELETE";
 
-    public static final String SCHEMA_LIST = "SCHEMA_LIST";
-
     public static final String SCHEMA_CREATE = "SCHEMA_CREATE";
 
     public static final String SCHEMA_UPDATE = "SCHEMA_UPDATE";


Mime
View raw message