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)