Skip to content
Snippets Groups Projects
Unverified Commit e23921c7 authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #7123 from nextcloud/external-storage-user-mount-checkbox

Fix "allow user mount" checkbox for external storage
parents ff2d4432 0baa7ce9
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
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