From 8206972698f6c5f3e1de5bdf881ea5f1c9d89567 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 26 Feb 2022 22:36:47 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index aef78a7..80afde9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -66,6 +66,11 @@ if ynh_legacy_permissions_exists; then ynh_app_setting_delete --app=$app --key=is_public fi +if ! ynh_permission_exists --permission="admin"; then + # Create the required permissions + ynh_permission_create --permission="admin" --url="/admin" --allowed=$admin +fi + #================================================= # CREATE DEDICATED USER #=================================================