diff options
Diffstat (limited to 'app/helpers/projects_helper.rb')
-rw-r--r-- | app/helpers/projects_helper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index 4ed99b229b5..023790f7d87 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -720,8 +720,7 @@ module ProjectsHelper end def settings_container_registry_expiration_policy_available?(project) - Feature.enabled?(:registry_retention_policies_settings, project) && - Gitlab.config.registry.enabled && + Gitlab.config.registry.enabled && can?(current_user, :destroy_container_image, project) end end |