Commit e01a5098 authored by Douwe Maan's avatar Douwe Maan

Merge branch 'jej/group-saml-settings-link-checks-license' into 'master'

Group SAML settings link checks license

See merge request gitlab-org/gitlab-ee!6147
parents 4ea6866d 99bdebd5
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