Add missing required permission.
This commit is contained in:
@@ -311,6 +311,7 @@
|
|||||||
|
|
||||||
//grant temporary permissions
|
//grant temporary permissions
|
||||||
$p = new permissions;
|
$p = new permissions;
|
||||||
|
$p->add('dialplan_add', 'temp');
|
||||||
$p->add('dialplan_detail_add', 'temp');
|
$p->add('dialplan_detail_add', 'temp');
|
||||||
|
|
||||||
//save the array
|
//save the array
|
||||||
@@ -321,6 +322,7 @@
|
|||||||
unset($array);
|
unset($array);
|
||||||
|
|
||||||
//revoke temporary permissions
|
//revoke temporary permissions
|
||||||
|
$p->delete('dialplan_add', 'temp');
|
||||||
$p->delete('dialplan_detail_add', 'temp');
|
$p->delete('dialplan_detail_add', 'temp');
|
||||||
|
|
||||||
//clear the cache
|
//clear the cache
|
||||||
|
|||||||
Reference in New Issue
Block a user