From b523c85ad8a8648d25f041565d471b5bf34322cf Mon Sep 17 00:00:00 2001 From: ljf Date: Thu, 2 Mar 2023 23:21:16 +0100 Subject: [PATCH 1/2] [fix] /adminstuds.php urls --- manifest.json | 2 +- scripts/install | 3 +++ scripts/upgrade | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 6eaaeb7..ba4467e 100644 --- a/manifest.json +++ b/manifest.json @@ -7,7 +7,7 @@ "fr": "Service pour planifier un rendez-vous ou prendre une décision rapidement et facilement", "de": "Service zur schnellen und einfachen Planung eines Termins oder zur Entscheidungsfindung" }, - "version": "1.1.17~ynh2", + "version": "1.1.17~ynh3", "url": "https://git.framasoft.org/framasoft/framadate", "upstream": { "license": "CECILL-B", diff --git a/scripts/install b/scripts/install index 5a12244..5553e65 100644 --- a/scripts/install +++ b/scripts/install @@ -164,6 +164,9 @@ then # Everyone can access the app. # The "main" permission is automatically created before the install script. ynh_permission_update --permission="main" --add="visitors" + + # Avoid /adminstuds to be caught by sso as /admin urls + ynh_permission_url --permission="main" --add_url="/adminstuds.php" fi # Only the admin can access the admin panel of the app (if the app has an admin panel) diff --git a/scripts/upgrade b/scripts/upgrade index 387dd6c..efebf15 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -68,6 +68,9 @@ if ! ynh_permission_exists --permission="admin"; then ynh_permission_create --permission="admin" --url="/admin" --allowed=$admin fi +# Avoid /adminstuds to be caught by sso as /admin urls +ynh_permission_url --permission="main" --add_url="/adminstuds.php" + # If db_name doesn't exist, create it if [ -z "$db_name" ]; then db_name=$(ynh_sanitize_dbid --db_name=$app) From 21dcdf6936e104efb49b56ecd612c0c67b641afa Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Thu, 2 Mar 2023 22:22:22 +0000 Subject: [PATCH 2/2] Auto-update README --- README.md | 5 +++-- README_fr.md | 23 ++++++++++++----------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index c35ee4d..15db42f 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,8 @@ It shall NOT be edited by hand. # OpenSondage for YunoHost -[![Integration level](https://dash.yunohost.org/integration/opensondage.svg)](https://dash.yunohost.org/appci/app/opensondage) ![Working status](https://ci-apps.yunohost.org/ci/badges/opensondage.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/opensondage.maintain.svg) +[![Integration level](https://dash.yunohost.org/integration/opensondage.svg)](https://dash.yunohost.org/appci/app/opensondage) ![Working status](https://ci-apps.yunohost.org/ci/badges/opensondage.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/opensondage.maintain.svg) + [![Install OpenSondage with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=opensondage) *[Lire ce readme en français.](./README_fr.md)* @@ -17,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in OpenSondage is an online service for planning an appointment or making a decision quickly and easily. No registration is required. -**Shipped version:** 1.1.17~ynh2 +**Shipped version:** 1.1.17~ynh3 **Demo:** https://framadate.org/ diff --git a/README_fr.md b/README_fr.md index d75de4d..1f81e4b 100644 --- a/README_fr.md +++ b/README_fr.md @@ -5,25 +5,26 @@ It shall NOT be edited by hand. # OpenSondage pour YunoHost -[![Niveau d'intégration](https://dash.yunohost.org/integration/opensondage.svg)](https://dash.yunohost.org/appci/app/opensondage) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/opensondage.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/opensondage.maintain.svg) +[![Niveau d’intégration](https://dash.yunohost.org/integration/opensondage.svg)](https://dash.yunohost.org/appci/app/opensondage) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/opensondage.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/opensondage.maintain.svg) + [![Installer OpenSondage avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=opensondage) *[Read this readme in english.](./README.md)* -> *Ce package vous permet d'installer OpenSondage rapidement et simplement sur un serveur YunoHost. -Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.* +> *Ce package vous permet d’installer OpenSondage rapidement et simplement sur un serveur YunoHost. +Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l’installer et en profiter.* -## Vue d'ensemble +## Vue d’ensemble OpenSondage est un service en ligne permettant de planifier un rendez-vous ou prendre des décisions rapidement et simplement. Aucune inscription préalable n’est nécessaire. -**Version incluse :** 1.1.17~ynh2 +**Version incluse :** 1.1.17~ynh3 **Démo :** https://framadate.org/ -## Captures d'écran +## Captures d’écran -![Capture d'écran de OpenSondage](./doc/screenshots/screenshots.jpg) +![Capture d’écran de OpenSondage](./doc/screenshots/screenshots.jpg) ## Avertissements / informations importantes @@ -38,9 +39,9 @@ OpenSondage est un service en ligne permettant de planifier un rendez-vous ou pr ## Documentations et ressources -* Site officiel de l'app : -* Documentation officielle de l'admin : -* Dépôt de code officiel de l'app : +* Site officiel de l’app : +* Documentation officielle de l’admin : +* Dépôt de code officiel de l’app : * Documentation YunoHost pour cette app : * Signaler un bug : @@ -56,4 +57,4 @@ ou sudo yunohost app upgrade opensondage -u https://github.com/YunoHost-Apps/opensondage_ynh/tree/testing --debug ``` -**Plus d'infos sur le packaging d'applications :** +**Plus d’infos sur le packaging d’applications :** \ No newline at end of file