diff --git a/scripts/install b/scripts/install index 9a6bbe6..71ddc5f 100755 --- a/scripts/install +++ b/scripts/install @@ -169,6 +169,11 @@ then 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" + #================================================= # RELOAD NGINX #=================================================