mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
Fix permission on experiment open for org admins [SCI-7373]
This commit is contained in:
parent
1799361944
commit
140dc8c768
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue