Ok, I tried this out on my test box for you. This worked for me, but also bear in mind that running Update - App Defaults may also fix the issue, but I have not tried that. I tend to avoid App Defaults as much as possible - don't ask me why.
First (in my case) i needed to find out the uuid of the superadmin group:
Code:
select * from v_groups where group_name = 'superadmin';
Result:
Code:
group_uuid | domain_uuid | group_name | group_protected | group_description | group_level
--------------------------------------+-------------+------------+-----------------+---------------------------+-------------
92e77a3b-95dc-44ce-bfbd-66e56c18010f | | superadmin | false | Super Administrator Group | 80
(1 row)
Now using the uuid, I update the v_group_permissions table:
Code:
update v_group_permissions set group_uuid = '92e77a3b-95dc-44ce-bfbd-66e56c18010f' where group_name = 'superadmin' and permission_name = 'xml_cdr_delete';
Now the xml_cdr_delete entries look like this:
Code:
group_permission_uuid | domain_uuid | permission_name | group_name | group_uuid
--------------------------------------+-------------+-----------------+------------+--------------------------------------
6ce22e8d-a68c-4bf6-8fd7-24ac0b229925 | | xml_cdr_delete | user | 41ae078a-7042-4f4d-9d94-e361f612c245
9a885249-abd3-45ab-8311-19e07dadec72 | | xml_cdr_delete | superadmin | 92e77a3b-95dc-44ce-bfbd-66e56c18010f
(2 rows)
Now when I check or uncheck the xml_cdr_delete permission for superadmin it works!