1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/opensondage_ynh.git synced 2024-09-03 19:46:28 +02:00

[fix] /adminstuds.php urls

This commit is contained in:
ljf 2023-03-02 23:21:16 +01:00
parent c0bc955e92
commit b523c85ad8
No known key found for this signature in database
3 changed files with 7 additions and 1 deletions

View file

@ -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",

View file

@ -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)

View file

@ -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)