_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:
parent
44ae9dca81
commit
75958ec5b2
1 changed files with 2 additions and 0 deletions
|
@ -896,6 +896,8 @@ WopiStorage::WOPIFileInfo::WOPIFileInfo(const FileInfo &fileInfo,
|
|||
if (isReadOnly)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue