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
remotes/origin/ldap_group_count
Robin McCorkell 13 years ago
parent 3445c062ec
commit 86aa6104e6
  1. 4
      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;
}
}

Loading…
Cancel
Save