From ee4aabfae9dbea46447feba885753e122683d069 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 18 May 2021 04:14:20 +0200 Subject: [PATCH] Fix missing admin permission --- scripts/upgrade | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 091448a..d738326 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -83,6 +83,11 @@ if [ -n "$is_public" ]; 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 #=================================================