1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dotclear2_ynh.git synced 2024-09-03 18:26:29 +02:00

Protect admin area if the app is public

This commit is contained in:
Kayou 2019-03-01 23:46:01 +01:00
parent cde210686c
commit b3c403a1a8
No known key found for this signature in database
GPG key ID: 823A2CBE071D3126
2 changed files with 4 additions and 0 deletions

View file

@ -169,6 +169,8 @@ ynh_app_setting_delete $app skipped_uris
if [ $is_public -eq 1 ]; then
# unprotected_uris allows SSO credentials to be passed anyway.
ynh_app_setting_set $app unprotected_uris "/"
# protect admin area
ynh_app_setting_set $app protected_uris "/admin"
fi
#=================================================

View file

@ -181,6 +181,8 @@ if [ $is_public -eq 1 ]
then
# unprotected_uris allows SSO credentials to be passed anyway
ynh_app_setting_set $app unprotected_uris "/"
# protect admin area
ynh_app_setting_set $app protected_uris "/admin"
fi
#=================================================