From 2c1a1b1779bb229b47652e0a15c0885dbacc1e87 Mon Sep 17 00:00:00 2001 From: Daniel Calviño Sánchez Date: Fri, 12 May 2023 14:54:59 +0200 Subject: Disable "Enforce password protection" if not asking for a password MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "Enforce password protection" is a subcase of "Always ask for a password", so it should be disabled if its parent option is unchecked. Although other dependant options in the sharing settings are fully hidden instead of just disabled this option is disabled but shown to avoid confusion when updating from a previous Nextcloud version where "Always ask for a password" was unchecked and "Enforce password protection" was checked. Besides that, due to their dependency the enforced password protection is now automatically unchecked too if its parent option is unchecked. Finally, the groups excluded from password requirements are also disabled when "Always ask for a password" is unchecked, as they might be still shown if "Enforce password protection" was checked due to an update from a previous version. Signed-off-by: Daniel Calviño Sánchez --- apps/settings/templates/settings/admin/sharing.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/settings/templates') diff --git a/apps/settings/templates/settings/admin/sharing.php b/apps/settings/templates/settings/admin/sharing.php index 1a943197a8a..2918a764d89 100644 --- a/apps/settings/templates/settings/admin/sharing.php +++ b/apps/settings/templates/settings/admin/sharing.php @@ -117,6 +117,8 @@ />
@@ -124,7 +126,9 @@
+ style="width: 400px" class="noJSAutoUpdate double-indent" />

-- cgit v1.2.3