Fix temporary permissions
This commit is contained in:
@@ -91,7 +91,7 @@
|
||||
$user_uuid = $_REQUEST["user_uuid"];
|
||||
$conference_uuid = $_REQUEST["id"];
|
||||
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('conference_user_delete', 'temp');
|
||||
|
||||
$array['conference_users'][0]['domain_uuid'] = $_SESSION['domain_uuid'];
|
||||
@@ -124,7 +124,7 @@
|
||||
$array['conference_users'][0]['conference_uuid'] = $conference_uuid;
|
||||
$array['conference_users'][0]['user_uuid'] = $user_uuid;
|
||||
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('conference_user_add', 'temp');
|
||||
|
||||
$database = new database;
|
||||
@@ -239,7 +239,7 @@
|
||||
$array['dialplans'][0]['dialplan_enabled'] = $conference_enabled;
|
||||
$array['dialplans'][0]['dialplan_description'] = $conference_description;
|
||||
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('dialplan_add', 'temp');
|
||||
$p->add('dialplan_edit', 'temp');
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ if (!class_exists('conferences')) {
|
||||
if (is_array($array) && @sizeof($array) != 0) {
|
||||
|
||||
//grant temporary permissions
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('conference_user_delete', 'temp');
|
||||
$p->add('dialplan_detail_delete', 'temp');
|
||||
$p->add('dialplan_delete', 'temp');
|
||||
@@ -203,7 +203,7 @@ if (!class_exists('conferences')) {
|
||||
if (is_array($array) && @sizeof($array) != 0) {
|
||||
|
||||
//grant temporary permissions
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('dialplan_edit', 'temp');
|
||||
|
||||
//save the array
|
||||
@@ -341,7 +341,7 @@ if (!class_exists('conferences')) {
|
||||
if (is_array($array) && @sizeof($array) != 0) {
|
||||
|
||||
//grant temporary permissions
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('conference_user_add', 'temp');
|
||||
$p->add('dialplan_add', 'temp');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user