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:
parent
c0bc955e92
commit
b523c85ad8
3 changed files with 7 additions and 1 deletions
|
@ -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",
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue