From 3691a0126df1f4e0c4587d80908dc2ffaa24f10a Mon Sep 17 00:00:00 2001 From: jorg-vr Date: Fri, 3 Feb 2023 10:45:45 +0100 Subject: [PATCH] Allow edditing repositories for repository admins --- app/policies/repository_policy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?