diff options
author | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2014-03-24 15:15:15 +0000 |
---|---|---|
committer | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2014-03-26 14:35:07 +0000 |
commit | 86aa6104e690f8647c800f49b61bb95e2a625f97 (patch) | |
tree | 64e174bbb6290325d7f70e29e4d70b6075c10840 /apps/files_external/lib | |
parent | 3445c062ecf188134c3ef236aa911a074ff29cff (diff) | |
download | nextcloud-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.php | 4 |
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; + } } |