From a5afa5998e3a630714d9c110966f2d417c43483e Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 2 Sep 2021 21:42:18 +0200 Subject: [PATCH] Delete old "ui" permission if it exists --- scripts/upgrade | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 6468bea..332fda1 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -73,6 +73,11 @@ if ! ynh_permission_exists --permission="admin"; then ynh_permission_create --permission="admin" --url="/admin" --label="admin" --show_tile=true fi +if ynh_permission_exists --permission="ui"; then + # Delete the old permission + ynh_permission_delete --permission="ui" +fi + #================================================= # CLOSING PORT #=================================================