Commit 391cfd7f authored by David Kim's avatar David Kim

Merge branch 'fj-scope-feature-flag-sidebar-refactor-to-user' into 'master'

Scope feature flag :sidebar_refactor to user

See merge request gitlab-org/gitlab!60887
parents 426ed683 668776a0
...@@ -718,12 +718,12 @@ module ProjectsHelper ...@@ -718,12 +718,12 @@ module ProjectsHelper
end end
def settings_container_registry_expiration_policy_available?(project) def settings_container_registry_expiration_policy_available?(project)
Feature.disabled?(:sidebar_refactor) && Feature.disabled?(:sidebar_refactor, current_user) &&
can_destroy_container_registry_image?(current_user, project) can_destroy_container_registry_image?(current_user, project)
end end
def settings_packages_and_registries_enabled?(project) def settings_packages_and_registries_enabled?(project)
Feature.enabled?(:sidebar_refactor) && Feature.enabled?(:sidebar_refactor, current_user) &&
can_destroy_container_registry_image?(current_user, project) can_destroy_container_registry_image?(current_user, project)
end end
......
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