From 046d1157059239ee2c0a1cc71aa9ffb7aaa6c072 Mon Sep 17 00:00:00 2001 From: jarod5001 <68397534+jarod5001@users.noreply.github.com> Date: Fri, 6 May 2022 11:36:59 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index c89737a..2da79bb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -91,15 +91,15 @@ if ynh_legacy_permissions_exists; then ynh_app_setting_delete --app=$app --key=is_public fi -if ! ynh_permission_exists --permission="admin"; then +# if ! ynh_permission_exists --permission="admin"; then # Create the required permissions - ynh_permission_create --permission="admin" --url="/admin" --allowed=$admin -fi +# ynh_permission_create --permission="admin" --url="/admin" --allowed=$admin +# fi # Create a permission if needed -if ! ynh_permission_exists --permission="api"; then - ynh_permission_create --permission="api" --url="/api" --allowed="visitors" --show_tile="false" --protected="true" -fi +# if ! ynh_permission_exists --permission="api"; then +# ynh_permission_create --permission="api" --url="/api" --allowed="visitors" --show_tile="false" --protected="true" +# fi #================================================= # CREATE DEDICATED USER