Skip to content

Commit

Permalink
do not show lgobal credentials section if you cannot create mounts
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <szaimen@e.mail.de>
  • Loading branch information
szaimen committed Nov 22, 2023
1 parent 8877f9b commit ca6da67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/files_external/templates/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ function writeParameterInput($parameter, $options, $classes = []) {

<div class="followupsection">
<form autocomplete="false" action="#"
id="global_credentials" method="post">
id="global_credentials" method="post"
data-can-create="<?php echo $canCreateMounts?'true':'false' ?>">
<h2><?php p($l->t('Global credentials')); ?></h2>
<p class="settings-hint"><?php p($l->t('Global credentials can be used to authenticate with multiple external storages that have the same credentials.')); ?></p>
<input type="text" name="username"
Expand Down

0 comments on commit ca6da67

Please sign in to comment.