Fix temporary permissions
This commit is contained in:
@@ -202,7 +202,7 @@
|
||||
//add the missing email templates
|
||||
if (!empty($array['email_templates'])) {
|
||||
//add the temporary permission
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add("email_template_add", 'temp');
|
||||
$p->add("email_template_edit", 'temp');
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@
|
||||
//execute
|
||||
if (isset($array) && is_array($array)) {
|
||||
//assign temp permission
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('fax_add', 'temp');
|
||||
$p->add('fax_edit', 'temp');
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
$array['fax'][0]['fax_description'] = $fax_description;
|
||||
|
||||
//execute insert
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('fax_add', 'temp');
|
||||
|
||||
$database = new database;
|
||||
|
||||
@@ -175,7 +175,7 @@
|
||||
$array['fax_users'][0]['fax_uuid'] = $fax_uuid;
|
||||
$array['fax_users'][0]['user_uuid'] = $user_uuid;
|
||||
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('fax_user_delete', 'temp');
|
||||
|
||||
$database = new database;
|
||||
@@ -203,7 +203,7 @@
|
||||
$array['fax_users'][0]['fax_uuid'] = $fax_uuid;
|
||||
$array['fax_users'][0]['user_uuid'] = $user_uuid;
|
||||
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('fax_user_add', 'temp');
|
||||
|
||||
$database = new database;
|
||||
@@ -303,7 +303,7 @@
|
||||
$array['fax'][0]['dialplan_uuid'] = $dialplan_uuid;
|
||||
|
||||
//assign temp permission
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('fax_add', 'temp');
|
||||
|
||||
//set the dialplan action
|
||||
@@ -315,7 +315,7 @@
|
||||
$array['fax'][0]['fax_uuid'] = $fax_uuid;
|
||||
|
||||
//assign temp permission
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('fax_edit', 'temp');
|
||||
}
|
||||
|
||||
|
||||
@@ -836,7 +836,7 @@ if (!function_exists('fax_split_dtmf')) {
|
||||
$array['fax_queue'][0]['fax_command'] = 'originate '.$dial_string;
|
||||
|
||||
//add temporary permisison
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('fax_queue_add', 'temp');
|
||||
|
||||
//save the data
|
||||
|
||||
@@ -99,7 +99,7 @@ if (!class_exists('fax')) {
|
||||
$array['dialplan_details'][0]['domain_uuid'] = $this->domain_uuid;
|
||||
|
||||
//grant temporary permissions
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('dialplan_detail_delete', 'temp');
|
||||
|
||||
//execute delete
|
||||
@@ -166,7 +166,7 @@ if (!class_exists('fax')) {
|
||||
$array['dialplans'][] = $dialplan;
|
||||
|
||||
//add the dialplan permission
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add("dialplan_add", 'temp');
|
||||
$p->add("dialplan_detail_add", 'temp');
|
||||
$p->add("dialplan_edit", 'temp');
|
||||
@@ -312,7 +312,7 @@ if (!class_exists('fax')) {
|
||||
if (!empty($array) && is_array($array) && @sizeof($array) != 0) {
|
||||
|
||||
//grant temporary permissions
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('fax_delete', 'temp');
|
||||
$p->add('fax_user_delete', 'temp');
|
||||
$p->add('fax_file_delete', 'temp');
|
||||
@@ -625,7 +625,7 @@ if (!class_exists('fax')) {
|
||||
if (is_array($array) && @sizeof($array) != 0) {
|
||||
|
||||
//grant temporary permissions
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('fax_add', 'temp');
|
||||
$p->add('dialplan_add', 'temp');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user