|
|
@@ -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;
|
|
|
}
|
|
|
|