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:
parent
3445c062ec
commit
86aa6104e6
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue