Skip to content
Snippets Groups Projects

Fix composite identities with Gitaly calls

Merged Stan Hu requested to merge sh-scoped-user-internal-allowed-fix into master
All threads resolved!
Files
9
+ 6
2
@@ -2542,9 +2542,13 @@ def supports_saved_replies?
true
end
# Deprecated method. We are currently transitioning to the use of composite_identity_enforced attribute
def has_composite_identity?
false
# Since this is called in a number of places in both Sidekiq and Web,
# be extra paranoid that this column exists before reading it. This check
# can be removed in GitLab 17.8 or later.
return false unless has_attribute?(:composite_identity_enforced)
composite_identity_enforced
end
def composite_identity_enforced
Loading