# API team ID based sharing

* extents api sharing via team name with team id, so that both ways are supported now
* updates tests
This commit is contained in:
2026-05-14 15:04:24 +02:00
parent 056a92b068
commit 59a1bdfb1c
4 changed files with 63 additions and 33 deletions

View File

@@ -179,13 +179,7 @@ class AbstractModelAPISerializerV1(AbstractModelAPISerializer):
Returns:
ExternalIdentifier | None
"""
if external_identifier:
try:
obj = ExternalIdentifier.objects.get(external_id=external_identifier)
return obj
except ObjectDoesNotExist:
pass
return None
return ExternalIdentifier.resolve_external_identifier(external_identifier)
def _check_external_identifier_on_entry_creation(self, external_identifier):
""" Special check for POST processing: