The supervisor don't really need to edit anything, just pressing Submit will cause the campaign to be removed.
Ok, so imagine this scenario
The supervisor wants to add foo to AGENTS_20 allowed campaigns
He looks at the user groups admin pages and sees this:
[_] foo
[_] bar
no allowed campaigns (and that's what it should look like because the supervisor is not allowed too see baz)
but in reality this is the case:
- Code: Select all
mysql> SELECT allowed_campaigns FROM asterisk.vicidial_user_groups WHERE user_group = 'AGENTS_20';
+-------------------+
| allowed_campaigns |
+-------------------+
| baz - |
+-------------------+
He goes on and adds foo
[x] foo
[_] bar
and presses submit, to the supervisor this looks all OK, but taking a look at the database again and we will see this:
- Code: Select all
mysql> SELECT allowed_campaigns FROM asterisk.vicidial_user_groups WHERE user_group = 'AGENTS_20';
+-------------------+
| allowed_campaigns |
+-------------------+
| foo - |
+-------------------+
The campaign baz is removed from allowed campaigns
So this problem occurs when a user group that edits other user groups are not allowed to see the campaigns that the edited user group is allowed to see.
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com