From 140dc8c76887ff8d1c899588ee3450ec105ad862 Mon Sep 17 00:00:00 2001 From: Andrej Date: Fri, 21 Oct 2022 11:25:54 +0200 Subject: [PATCH] Fix permission on experiment open for org admins [SCI-7373] --- app/permissions/project.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/permissions/project.rb b/app/permissions/project.rb index 4e01de624..03f555283 100644 --- a/app/permissions/project.rb +++ b/app/permissions/project.rb @@ -20,7 +20,8 @@ Canaid::Permissions.register_for(Project) do export_project) .each do |perm| can perm do |user, project| - project.permission_granted?(user, ProjectPermissions::READ) + project.permission_granted?(user, ProjectPermissions::READ) || + project.team.permission_granted?(user, TeamPermissions::MANAGE) end end