mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-30 18:27:45 -05:00
Fix: correctly handle empty user for old notes api format, fix frontend API version (#9846)
This commit is contained in:
@@ -885,7 +885,7 @@ class NotesSerializer(serializers.ModelSerializer):
|
||||
request.version if request else settings.REST_FRAMEWORK["DEFAULT_VERSION"],
|
||||
)
|
||||
|
||||
if api_version < 8:
|
||||
if api_version < 8 and "user" in ret:
|
||||
user_id = ret["user"]["id"]
|
||||
ret["user"] = user_id
|
||||
|
||||
|
Reference in New Issue
Block a user