mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-06 05:04:35 +08:00
Fix appendable scope for shared inventories [SCI-12279]
This commit is contained in:
parent
4ad116b4d2
commit
b83d5b4a27
1 changed files with 0 additions and 1 deletions
|
@ -52,7 +52,6 @@ class Repository < RepositoryBase
|
|||
scope :appendable_by_user, lambda { |user, teams = user.current_team|
|
||||
active.with_granted_permissions(user, RepositoryPermissions::ROWS_CREATE, teams)
|
||||
.where(type: Extends::REPOSITORY_APPENDABLE_TYPES)
|
||||
.where(team: teams)
|
||||
}
|
||||
|
||||
def self.permission_class
|
||||
|
|
Loading…
Add table
Reference in a new issue