diff --git a/app/policies/repository_policy.rb b/app/policies/repository_policy.rb index fe801ff5f0..4afba1efb0 100644 --- a/app/policies/repository_policy.rb +++ b/app/policies/repository_policy.rb @@ -22,7 +22,7 @@ def create? end def update? - user&.zeus? + user&.repository_admin?(record) end def destroy?