From b3c403a1a8207c05e8475ee14059ba89330a4d96 Mon Sep 17 00:00:00 2001 From: Kayou Date: Fri, 1 Mar 2019 23:46:01 +0100 Subject: [PATCH] Protect admin area if the app is public --- scripts/install | 2 ++ scripts/upgrade | 2 ++ 2 files changed, 4 insertions(+) diff --git a/scripts/install b/scripts/install index a6d3aec..61828ba 100755 --- a/scripts/install +++ b/scripts/install @@ -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 #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index c719239..9302134 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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 #=================================================