From 3c263428b1349bc29291094a499e1f4bbbf2ab50 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 10 Jan 2021 18:54:28 +0100 Subject: [PATCH] Update scripts/upgrade Co-authored-by: Kayou --- scripts/upgrade | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 924f75d..160f3cc 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -67,6 +67,9 @@ 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