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/9ee741d2 Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/9ee741d2 Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/9ee741d2 Branch: refs/heads/master Commit: 9ee741d2b8b9a7d37e93057931ed12e9ab2670f3 Parents: 7b7668d 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:54 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/9ee741d2/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;