Fix permission on experiment open for org admins [SCI-7373]

This commit is contained in:
Andrej 2022-10-21 11:25:54 +02:00
parent 1799361944
commit 140dc8c768

View file

@ -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