_userCanWrite variable is set to false when the host is read-only.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I485c5254a534365cd9defb726ed0eb705977361e
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
This commit is contained in:
Gökay Şatır 2022-11-23 11:25:44 +03:00 committed by Gökay ŞATIR
parent 44ae9dca81
commit 75958ec5b2

View file

@ -896,6 +896,8 @@ WopiStorage::WOPIFileInfo::WOPIFileInfo(const FileInfo &fileInfo,
if (isReadOnly) if (isReadOnly)
{ {
isUserLocked = true; isUserLocked = true;
_userCanWrite = false;
LOG_DBG("Feature lock is enabled and " << host << " is in the list of read-only members. Therefore, document is set to read-only.");
} }
CommandControl::LockManager::setHostReadOnly(isReadOnly); CommandControl::LockManager::setHostReadOnly(isReadOnly);
} }