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
This commit is contained in:
Robin McCorkell 2014-03-24 15:15:15 +00:00
parent 3445c062ec
commit 86aa6104e6
1 changed files with 4 additions and 0 deletions

View File

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