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