Skip to content
Snippets Groups Projects
Commit 86aa6104 authored by Robin McCorkell's avatar Robin McCorkell
Browse files

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
parent 3445c062
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment