Commit 99bdebd5 authored by James Edwards-Jones's avatar James Edwards-Jones

Group SAML settings link checks license

parent 6e24d965
module EE
module SamlProvidersHelper
def group_saml_enabled?
def group_saml_configured?
::Gitlab::Auth::GroupSaml::Config.enabled?
end
def show_saml_in_sidebar?(group)
group_saml_enabled? && !group.subgroup? && can?(current_user, :admin_group_saml, group)
return false unless group_saml_configured?
return false unless group.feature_available?(:group_saml)
return false if group.subgroup?
can?(current_user, :admin_group_saml, group)
end
def saml_link_for_provider(text, provider, *args)
......
---
title: Group SAML settings link hidden when unlicensed
merge_request: 6147
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment