Repository: syncope
Updated Branches:
  refs/heads/2_0_X 7fed99aa0 -> 055ee2d24
  refs/heads/master 7b7668d02 -> 9ee741d2b


Hide SAML2SP extension in Admin Console for non-admin users


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/055ee2d2
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/055ee2d2
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/055ee2d2

Branch: refs/heads/2_0_X
Commit: 055ee2d24a802a829a95a362d2a50950f0feb204
Parents: 7fed99a
Author: Francesco Chicchiriccò <ilgro...@apache.org>
Authored: Fri Aug 11 13:26:08 2017 +0200
Committer: Francesco Chicchiriccò <ilgro...@apache.org>
Committed: Fri Aug 11 13:26:48 2017 +0200

----------------------------------------------------------------------
 .../java/org/apache/syncope/client/console/pages/SAML2SP.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/055ee2d2/ext/saml2sp/client-console/src/main/java/org/apache/syncope/client/console/pages/SAML2SP.java
----------------------------------------------------------------------
diff --git 
a/ext/saml2sp/client-console/src/main/java/org/apache/syncope/client/console/pages/SAML2SP.java
 
b/ext/saml2sp/client-console/src/main/java/org/apache/syncope/client/console/pages/SAML2SP.java
index 8399ff0..ea0ac93 100644
--- 
a/ext/saml2sp/client-console/src/main/java/org/apache/syncope/client/console/pages/SAML2SP.java
+++ 
b/ext/saml2sp/client-console/src/main/java/org/apache/syncope/client/console/pages/SAML2SP.java
@@ -25,6 +25,7 @@ import 
org.apache.syncope.client.console.BookmarkablePageLinkBuilder;
 import org.apache.syncope.client.console.annotations.ExtPage;
 import org.apache.syncope.client.console.panels.SAML2IdPsDirectoryPanel;
 import org.apache.syncope.client.console.panels.SAML2SPPanel;
+import org.apache.syncope.common.lib.types.SAML2SPEntitlement;
 import org.apache.wicket.extensions.markup.html.tabs.AbstractTab;
 import org.apache.wicket.extensions.markup.html.tabs.ITab;
 import org.apache.wicket.markup.html.WebMarkupContainer;
@@ -32,7 +33,7 @@ import org.apache.wicket.markup.html.panel.Panel;
 import org.apache.wicket.model.ResourceModel;
 import org.apache.wicket.request.mapper.parameter.PageParameters;
 
-@ExtPage(label = "SAML 2.0 SP", icon = "fa-sign-in", listEntitlement = "", 
priority = 100)
+@ExtPage(label = "SAML 2.0 SP", icon = "fa-sign-in", listEntitlement = 
SAML2SPEntitlement.IDP_READ, priority = 100)
 public class SAML2SP extends BaseExtPage {
 
     private static final long serialVersionUID = -4837201407211278956L;

Reply via email to