Skip to content

Commit

Permalink
Update views.py (#6638)
Browse files Browse the repository at this point in the history
  • Loading branch information
r350178982 authored Aug 26, 2024
1 parent 2ec3fc7 commit 31fdf97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions seahub/wopi/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ def get(self, request, file_id, format=None):
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)
Expand Down

0 comments on commit 31fdf97

Please sign in to comment.