-- Add attach cpu profile and attach disk profile permissions to all roles
-- that already have the import/export vm permissions

-- import/export ActionGroup 8
-- attach disk profile AG 1563
-- assign cpu profile AG 1668

SELECT fn_db_add_action_group_to_role(r.role_id, 1563)
FROM roles_groups r
WHERE action_group_id=8;

SELECT fn_db_add_action_group_to_role(r.role_id, 1668)
FROM roles_groups r
WHERE action_group_id=8;

Add Attach Disk/Cpu profile permissions to all Import/Export capable roles
Add Attach Disk/Cpu profile permissions to all Import/Export capable roles

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1255405
Change-Id: Id2cc0e56bd1ea4a5f9aeac0684a2acc3998a5e9d
Signed-off-by: Martin Sivak <361315d85e190db42db95eaca639c05fa7701076@redhat.com>
