Add missing required permission.
This commit is contained in:
parent
62a8b95a16
commit
ec6daa7be0
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue