Merge pull request #8221 from andrej-scinote/aj_SCI_11477

Fix smart annotation on a shared task [SCI-11477]
This commit is contained in:
andrej-scinote 2025-02-10 11:41:03 +01:00 committed by GitHub
commit af0ce6bf3a
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))