diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-01-19 14:21:59 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-01-29 14:51:30 +0100 |
commit | 5bdcd534b18ce842c6775f588c9a7330a82ed89d (patch) | |
tree | e49a4a0331fbec40d068806e5a3910140eca6271 /apps/files_external/js | |
parent | 860d51487b103f4c050d2427c35ee70dd4b2b05e (diff) | |
download | nextcloud-server-5bdcd534b18ce842c6775f588c9a7330a82ed89d.tar.gz nextcloud-server-5bdcd534b18ce842c6775f588c9a7330a82ed89d.zip |
dont show user provided auth as option for personal mounts
Diffstat (limited to 'apps/files_external/js')
-rw-r--r-- | apps/files_external/js/settings.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js index 16576ce7087..52b46db6cc0 100644 --- a/apps/files_external/js/settings.js +++ b/apps/files_external/js/settings.js @@ -836,8 +836,9 @@ MountConfigListView.prototype = _.extend({ $tr.find('.backend').data('identifier', backend.identifier); var selectAuthMechanism = $('<select class="selectAuthMechanism"></select>'); + var neededVisibility = (this._isPersonal) ? 1 : 2; $.each(this._allAuthMechanisms, function(authIdentifier, authMechanism) { - if (backend.authSchemes[authMechanism.scheme]) { + if (backend.authSchemes[authMechanism.scheme] && (authMechanism.visibility & neededVisibility)) { selectAuthMechanism.append( $('<option value="'+authMechanism.identifier+'" data-scheme="'+authMechanism.scheme+'">'+authMechanism.name+'</option>') ); @@ -1136,9 +1137,7 @@ MountConfigListView.prototype = _.extend({ saveStorageConfig:function($tr, callback, concurrentTimer) { var self = this; var storage = this.getStorageConfig($tr); - console.log(storage); if (!storage || !storage.validate()) { - console.log('invalid'); return false; } |