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
end
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)
end
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)
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