mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Only show password option for email shares.
Signed-off-by: allexzander <blackslayer4@gmail.com>
This commit is contained in:
parent
526fa399dc
commit
deb9ba89f0
@ -582,7 +582,7 @@ ShareUserLine::ShareUserLine(AccountPtr account,
|
||||
}
|
||||
|
||||
// Adds action to display password widget (check box)
|
||||
if (_share->isPasswordSet() || _account->capabilities().shareEmailPasswordEnabled()) {
|
||||
if (_share->getShareType() == Share::TypeEmail && (_share->isPasswordSet() || _account->capabilities().shareEmailPasswordEnabled())) {
|
||||
_passwordProtectLinkAction = new QAction(tr("Password protect"), this);
|
||||
_passwordProtectLinkAction->setCheckable(true);
|
||||
_passwordProtectLinkAction->setChecked(_share->isPasswordSet());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user