From c25fede68ffd3bbb86f7e14952178ab6ad43f7da Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 24 Jul 2022 07:19:21 +0200 Subject: [PATCH] Update install --- scripts/install | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 71ddc5f..514a447 100755 --- a/scripts/install +++ b/scripts/install @@ -166,12 +166,11 @@ ynh_script_progression --message="Configuring permissions..." --weight=1 # Make app public if necessary if [ $is_public -eq 1 ] then + # Everyone can access the app. + # The "main" permission is automatically created before the install script. ynh_permission_update --permission="main" --add="visitors" fi -# Everyone can access the API part -# We don't want to display the tile in the SSO so we put --show_tile="false" -# And we don't want the YunoHost admin to be able to remove visitors group to this permission, so we put --protected="true" ynh_permission_create --permission="api" --url="/api" --allowed="visitors" --show_tile="false" --protected="true" #=================================================