Skip to content

Commit

Permalink
if e2e server app is disabled, do not show secure file drop
Browse files Browse the repository at this point in the history
Signed-off-by: tobiasKaminsky <[email protected]>
  • Loading branch information
tobiasKaminsky authored and AndyScherzinger committed Nov 5, 2023
1 parent f655327 commit e3659cd
Showing 1 changed file with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,21 +435,8 @@ public void refreshSharesFromDB() {
ShareType.PUBLIC_LINK,
"");

//
// boolean supportsSecureFiledrop = file.isEncrypted() &&
// capabilities.getVersion().isNewerOrEqual(NextcloudVersion.nextcloud_26);
//
// if (publicShares.isEmpty() &&
// containsNoNewPublicShare(adapter.getShares()) &&
// (!file.isEncrypted() || supportsSecureFiledrop)) {
// final OCShare ocShare = new OCShare();
// ocShare.setShareType(ShareType.NEW_PUBLIC_LINK);
// publicShares.add(ocShare);
// } else {
// adapter.removeNewPublicShare();
// }

if (publicShares.isEmpty() && containsNoNewPublicShare(adapter.getShares())) {
if (publicShares.isEmpty() && containsNoNewPublicShare(adapter.getShares()) &&
(!file.isEncrypted() || capabilities.getEndToEndEncryption().isTrue())) {
final OCShare ocShare = new OCShare();
ocShare.setShareType(ShareType.NEW_PUBLIC_LINK);
publicShares.add(ocShare);
Expand Down

0 comments on commit e3659cd

Please sign in to comment.