mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-24 15:54:00 +08:00
Allow project viewing for team admins [SCI-5920]
This commit is contained in:
parent
1565b4bbfb
commit
f591bac3b1
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ Canaid::Permissions.register_for(Project) do
|
|||
export_project)
|
||||
.each do |perm|
|
||||
can perm do |user, project|
|
||||
project.permission_granted?(user, ProjectPermissions::READ)
|
||||
user.is_admin_of_team?(project.team) || project.permission_granted?(user, ProjectPermissions::READ)
|
||||
end
|
||||
end
|
||||
# project: read, read activities, read comments, read users, read archive,
|
||||
|
|
Loading…
Reference in a new issue