Merge pull request #8236 from andrej-scinote/aj_SCI_11581

Fix shared task smart annotation bug [SCI-11581]
This commit is contained in:
andrej-scinote 2025-02-14 09:17:38 +01:00 committed by GitHub
commit 4fa8c8280d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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))