summaryrefslogtreecommitdiff
path: root/app/models/ability.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/ability.rb')
-rw-r--r--app/models/ability.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb
index 09dea54689e..74321240468 100644
--- a/app/models/ability.rb
+++ b/app/models/ability.rb
@@ -292,7 +292,7 @@ class Ability
rules += named_abilities('build')
end
- unless project.container_registry_enabled && Gitlab.config.registry.enabled
+ unless project.container_registry_enabled
rules += named_abilities('container_registry')
end