aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@karoshi.org.uk>2014-03-24 15:15:15 +0000
committerRobin McCorkell <rmccorkell@karoshi.org.uk>2014-03-26 14:35:07 +0000
commit86aa6104e690f8647c800f49b61bb95e2a625f97 (patch)
tree64e174bbb6290325d7f70e29e4d70b6075c10840 /apps/files_external/lib
parent3445c062ecf188134c3ef236aa911a074ff29cff (diff)
downloadnextcloud-server-86aa6104e690f8647c800f49b61bb95e2a625f97.tar.gz
nextcloud-server-86aa6104e690f8647c800f49b61bb95e2a625f97.zip
Revoke sharable permission on automatic SMB shares
Shares authenticated with user credentials (aka not hard coded) cannot be accessed by other users, breaking sharing. This change completely revokes sharing for such shares
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r--apps/files_external/lib/smb_auto.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_external/lib/smb_auto.php b/apps/files_external/lib/smb_auto.php
index f2ebdca9cdf..0556aa64843 100644
--- a/apps/files_external/lib/smb_auto.php
+++ b/apps/files_external/lib/smb_auto.php
@@ -43,4 +43,8 @@ class SMB_Auto extends \OC\Files\Storage\SMB{
public static function login( $params ) {
\OC::$session->set('smb-credentials', $params);
}
+
+ public function isSharable($path) {
+ return false;
+ }
}