Fix the permissions for admin using the time conditions and dialplan -> destinations.

This commit is contained in:
Mark Crane
2015-04-29 23:22:36 +00:00
parent 5e558cca0d
commit 70453cfd5a
4 changed files with 24 additions and 3 deletions
+8
View File
@@ -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();