From 4f90174e1b15c0557eff7a7bffa7590f3a91fdef Mon Sep 17 00:00:00 2001 From: ljf Date: Tue, 18 Jan 2022 21:34:01 +0100 Subject: [PATCH] [fix] Public/private mode --- manifest.json | 4 ++-- scripts/install | 4 ++-- scripts/upgrade | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/manifest.json b/manifest.json index d9f4473..e807fd1 100644 --- a/manifest.json +++ b/manifest.json @@ -169,11 +169,11 @@ "default": "en" }, { - "name": "is_public", + "name": "is_admin_public", "type": "boolean", "help": { "en": "In private mode, only authorized YunoHost members can create poll, with the public mode, it's possible to create account to people with no YunoHost account. ", - "fr": "En mode privé, seuls les utilisateurs YunoHost autorisés peuvent créer un sondage. En mode public, il est possible de créer un sondage sans compte YunoHost." + "fr": "En mode privé, seuls les utilisateurs YunoHost autorisés peuvent créer un sondage. En mode public, il est possible de créer un sondage avec un compte Limesurvey mais sans compte YunoHost." }, "default": true }, diff --git a/scripts/install b/scripts/install index bd05f3e..2cd6cf6 100755 --- a/scripts/install +++ b/scripts/install @@ -23,7 +23,7 @@ ynh_abort_if_errors domain=$YNH_APP_ARG_DOMAIN path_url=$YNH_APP_ARG_PATH admin=$YNH_APP_ARG_ADMIN -is_public=$YNH_APP_ARG_IS_PUBLIC +is_admin_public=$YNH_APP_ARG_is_admin_public language=$YNH_APP_ARG_LANGUAGE password=$YNH_APP_ARG_PASSWORD @@ -173,7 +173,7 @@ ynh_secure_remove --file=./data.sql #================================================= ynh_script_progression --message="Configuring permissions..." --weight=1 -if [ $is_public -eq 1 ] +if [ $is__public -eq 1 ] then allowed_groups="visitors $admin" else diff --git a/scripts/upgrade b/scripts/upgrade index 47cadc7..2a779ec 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -80,7 +80,7 @@ fi if ynh_legacy_permissions_exists; then ynh_legacy_permissions_delete_all - ynh_app_setting_delete --app=$app --key=is_public + ynh_app_setting_delete --app=$app --key=is_admin_public fi if ! ynh_permission_exists --permission="admin"; then