Commit 89880745 authored by mo khan's avatar mo khan

Allow beta access to licenses list

parent bea66c38
......@@ -82,7 +82,7 @@ module EE
with_scope :subject
condition(:licenses_list_enabled) do
@subject.feature_available?(:licenses_list)
@subject.beta_feature_available?(:licenses_list)
end
with_scope :subject
......
......@@ -851,6 +851,17 @@ describe ProjectPolicy do
end
end
context "when the licenses_list feature is enabled for a specific project" do
let(:current_user) { create(:user) }
before do
stub_feature_flags(licenses_list: { enabled: true, thing: project })
stub_licensed_features(license_management: true)
end
it { is_expected.to be_allowed(:read_licenses_list) }
end
context 'when license management feature in not available' do
let(:current_user) { admin }
......
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