Clean up optional (unused) wopi checkFileInfo options

This commit is contained in:
Brandon Doornbos 2026-06-17 01:15:58 +02:00
parent 3b68f6895a
commit f1fe9c6452

View file

@ -1567,25 +1567,12 @@ class HttpCli(object):
"UserId": self.uname, "UserId": self.uname,
"UserFriendlyName": self.uname, "UserFriendlyName": self.uname,
"UserCanWrite": True, "UserCanWrite": True,
# "UserCanNotWriteRelative": False, "UserCanNotWriteRelative": True,
# "PostMessageOrigin": ,
# "HidePrintOption": ,
# "DisablePrint": ,
# "HideSaveOption": ,
# "HideExportOption": ,
# "HideRepairOption": ,
# "DisableExport": ,
# "DisableCopy": ,
# "EnableOwnerTermination": True,
"LastModifiedTime": "LastModifiedTime":
time.strftime( time.strftime(
"%Y-%m-%dT%H:%M:%SZ", "%Y-%m-%dT%H:%M:%SZ",
time.gmtime(os.path.getmtime(full_path)) time.gmtime(os.path.getmtime(full_path))
), ),
# "IsUserLocked": ,
# "IsUserRestricted": ,
# "SupportsRename": True,
# "UserCanRename": True,
} }
ret = json.dumps(file_info).encode("utf-8", "replace") ret = json.dumps(file_info).encode("utf-8", "replace")
self.reply(ret, 200, "application/json; charset=utf-8") self.reply(ret, 200, "application/json; charset=utf-8")