summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-11-13 14:52:21 +0100
committerGitHub <noreply@github.com>2017-11-13 14:52:21 +0100
commite23921c7b1db72595dfb89c344c6e2c7081012b0 (patch)
treeedc2cb62cb4a5a7cbba85b9406badc98a52c037f /apps/files_external
parentff2d4432d8af7f8d1d17d9740f985bb36db531fc (diff)
parent0baa7ce9111773fb9b68129aef22cad4b34b683b (diff)
downloadnextcloud-server-e23921c7b1db72595dfb89c344c6e2c7081012b0.tar.gz
nextcloud-server-e23921c7b1db72595dfb89c344c6e2c7081012b0.zip
Merge pull request #7123 from nextcloud/external-storage-user-mount-checkbox
Fix "allow user mount" checkbox for external storage
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/templates/settings.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/templates/settings.php b/apps/files_external/templates/settings.php
index 1d703e0c1b3..237985bfd0f 100644
--- a/apps/files_external/templates/settings.php
+++ b/apps/files_external/templates/settings.php
@@ -169,10 +169,10 @@
<?php if ($_['visibilityType'] === BackendService::VISIBILITY_ADMIN): ?>
<input type="checkbox" name="allowUserMounting" id="allowUserMounting" class="checkbox"
- value="1" <?php if ($_['allowUserMounting'] === 'yes') print_unescaped(' checked="checked"'); ?> />
+ value="1" <?php if ($_['allowUserMounting']) print_unescaped(' checked="checked"'); ?> />
<label for="allowUserMounting"><?php p($l->t('Allow users to mount external storage')); ?></label> <span id="userMountingMsg" class="msg"></span>
- <p id="userMountingBackends"<?php if ($_['allowUserMounting'] !== 'yes'): ?> class="hidden"<?php endif; ?>>
+ <p id="userMountingBackends"<?php if (!$_['allowUserMounting']): ?> class="hidden"<?php endif; ?>>
<?php p($l->t('Allow users to mount the following external storage')); ?><br />
<?php
$userBackends = array_filter($_['backends'], function($backend) {