Commit 37fa903e authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch '198652-rename-license-management-feature' into 'master'

Rename license_management to license_scanning

See merge request gitlab-org/gitlab!24980
parents 22f6af08 0883c4f4
...@@ -118,6 +118,7 @@ class License < ApplicationRecord ...@@ -118,6 +118,7 @@ class License < ApplicationRecord
insights insights
issuable_health_status issuable_health_status
license_management license_management
license_scanning
personal_access_token_expiration_policy personal_access_token_expiration_policy
pod_logs pod_logs
prometheus_alerts prometheus_alerts
......
...@@ -92,8 +92,8 @@ module EE ...@@ -92,8 +92,8 @@ module EE
end end
with_scope :subject with_scope :subject
condition(:license_management_enabled) do condition(:license_scanning_enabled) do
@subject.feature_available?(:license_management) @subject.feature_available?(:license_scanning) || @subject.feature_available?(:license_management)
end end
with_scope :subject with_scope :subject
...@@ -200,7 +200,7 @@ module EE ...@@ -200,7 +200,7 @@ module EE
rule { dependency_scanning_enabled & can?(:download_code) }.enable :read_dependencies rule { dependency_scanning_enabled & can?(:download_code) }.enable :read_dependencies
rule { license_management_enabled & can?(:download_code) }.enable :read_licenses rule { license_scanning_enabled & can?(:download_code) }.enable :read_licenses
rule { can?(:read_licenses) }.enable :read_software_license_policy rule { can?(:read_licenses) }.enable :read_software_license_policy
...@@ -228,7 +228,7 @@ module EE ...@@ -228,7 +228,7 @@ module EE
enable :modify_merge_request_committer_setting enable :modify_merge_request_committer_setting
end end
rule { license_management_enabled & can?(:maintainer_access) }.enable :admin_software_license_policy rule { license_scanning_enabled & can?(:maintainer_access) }.enable :admin_software_license_policy
rule { pod_logs_enabled & can?(:maintainer_access) }.enable :read_pod_logs rule { pod_logs_enabled & can?(:maintainer_access) }.enable :read_pod_logs
rule { prometheus_alerts_enabled & can?(:maintainer_access) }.enable :read_prometheus_alerts rule { prometheus_alerts_enabled & can?(:maintainer_access) }.enable :read_prometheus_alerts
......
...@@ -27,7 +27,7 @@ license_scanning: ...@@ -27,7 +27,7 @@ license_scanning:
refs: refs:
- branches - branches
variables: variables:
- $GITLAB_FEATURES =~ /\blicense_management\b/ - $GITLAB_FEATURES =~ /\blicense_scanning\b/
except: except:
variables: variables:
- $LICENSE_MANAGEMENT_DISABLED - $LICENSE_MANAGEMENT_DISABLED
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