mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 19:58:56 +03:00
Don't show Encrypt menu entry if server does not support E2EE
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
01334e40f9
commit
a23db4688a
1 changed files with 6 additions and 1 deletions
|
@ -1166,7 +1166,12 @@ void SocketApi::sendEncryptFolderCommandMenuEntries(const QFileInfo &fileInfo,
|
|||
const bool isE2eEncryptedPath,
|
||||
const OCC::SocketListener* const listener) const
|
||||
{
|
||||
if (!fileInfo.isDir() || isE2eEncryptedPath) {
|
||||
if (!fileData.folder ||
|
||||
!fileData.folder->accountState() ||
|
||||
!fileData.folder->accountState()->account() ||
|
||||
!fileData.folder->accountState()->account()->capabilities().clientSideEncryptionAvailable() ||
|
||||
!fileInfo.isDir() ||
|
||||
isE2eEncryptedPath) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue