From 2694060138080aca86df9ac460a73e5cde5a3283 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 28 Mar 2022 11:54:22 +0200 Subject: [PATCH] Update install --- scripts/install | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/install b/scripts/install index 773b945..0276c23 100755 --- a/scripts/install +++ b/scripts/install @@ -164,6 +164,14 @@ then ynh_permission_update --permission="main" --add="visitors" fi +# Only the admin can access the admin panel of the app (if the app has an admin panel) +ynh_permission_create --permission="admin" --url="/admin/" --allowed=$admin + +# 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" + #================================================= # RELOAD NGINX #=================================================