1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/limesurvey_ynh.git synced 2024-09-03 19:36:32 +02:00

[fix] Public/private mode

This commit is contained in:
ljf 2022-01-18 21:34:01 +01:00
parent fbf6ad2c26
commit 4f90174e1b
3 changed files with 5 additions and 5 deletions

View file

@ -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
},

View file

@ -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

View file

@ -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