1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 00:00:00 +00:00

Update views.py (#6638)

This commit is contained in:
Ranjiwei
2024-08-26 16:22:36 +08:00
committed by GitHub
parent 2ec3fc7a51
commit 31fdf97d07

View File

@@ -236,6 +236,8 @@ class WOPIFilesView(APIView):
return HttpResponse(json.dumps({}), status=500,
content_type=json_content_type)
result['IsAdminUser'] = False
# optional
if request_user != ANONYMOUS_EMAIL:
result['UserFriendlyName'] = email2nickname(request_user)