From 31e8e450ed3c5381faaf5203b0a734efbb709aa1 Mon Sep 17 00:00:00 2001 From: Oleh Fedorenko Date: Mon, 17 Jun 2024 11:53:22 +0000 Subject: [PATCH] Fixes #37567 - Remove OVAL related permissions from DB --- db/migrate/20240617105409_remove_oval_permissions.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 db/migrate/20240617105409_remove_oval_permissions.rb diff --git a/db/migrate/20240617105409_remove_oval_permissions.rb b/db/migrate/20240617105409_remove_oval_permissions.rb new file mode 100644 index 00000000..3bd20a81 --- /dev/null +++ b/db/migrate/20240617105409_remove_oval_permissions.rb @@ -0,0 +1,7 @@ +class RemoveOvalPermissions < ActiveRecord::Migration[6.1] + def up + Permission.where(resource_type: 'ForemanOpenscap::OvalPolicy').destroy_all + Permission.where(resource_type: 'ForemanOpenscap::OvalContent').destroy_all + Permission.where(resource_type: 'ForemanOpenscap::Cve').destroy_all + end +end