Fix shared task smart annotation bug [SCI-11581]

This commit is contained in:
Andrej 2025-02-14 08:01:07 +01:00
parent ace4139a84
commit fa156005ed

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