Fix the permissions for admin using the time conditions and dialplan -> destinations.
This commit is contained in:
@@ -49,6 +49,11 @@ else {
|
||||
exit;
|
||||
}
|
||||
|
||||
//add the dialplan permission
|
||||
$permission = "dialplan_delete";
|
||||
$p = new permissions;
|
||||
$p->add($permission, 'temp');
|
||||
|
||||
//get the dialplan_uuid
|
||||
$orm = new orm;
|
||||
$orm->name('destinations');
|
||||
@@ -63,6 +68,9 @@ else {
|
||||
}
|
||||
unset ($prep_statement);
|
||||
|
||||
//remove the temporary permission
|
||||
$p->delete($permission, 'temp');
|
||||
|
||||
//start the atomic transaction
|
||||
$db->beginTransaction();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user