mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-12 08:04:34 +08:00
Merge pull request #8236 from andrej-scinote/aj_SCI_11581
Fix shared task smart annotation bug [SCI-11581]
This commit is contained in:
commit
4fa8c8280d
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ module SmartAnnotations
|
|||
if type == 'rep_item'
|
||||
repository_item(value[:name], user, team, type, object, is_shared_object)
|
||||
else
|
||||
next unless is_shared_object || (object && SmartAnnotations::PermissionEval.check(user,
|
||||
next unless object && (is_shared_object || SmartAnnotations::PermissionEval.check(user,
|
||||
team,
|
||||
type,
|
||||
object))
|
||||
|
|
Loading…
Add table
Reference in a new issue