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:
parent
cde210686c
commit
b3c403a1a8
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue