mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-18 15:59:39 +08:00
Merge pull request #8221 from andrej-scinote/aj_SCI_11477
Fix smart annotation on a shared task [SCI-11477]
This commit is contained in:
commit
af0ce6bf3a
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