mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-25 01:03:18 +08:00
Fix repository permissions helper [SCI-7360]
This commit is contained in:
parent
3bc3036b58
commit
d38556e3fa
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ Canaid::Permissions.register_for(Repository) do
|
|||
delete_repository_rows)
|
||||
.each do |perm|
|
||||
can perm do |user, repository|
|
||||
next false if repository.shared_with?(user.current_team) && !repository.shared_with_write?(user.current_team)
|
||||
repository.shared_with?(user.current_team) ? repository.shared_with_write?(user.current_team) : true
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue