mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Fix temporary permissions
This commit is contained in:
@@ -310,7 +310,7 @@ class plugin_database {
|
||||
$array['user_groups'][0]['user_uuid'] = $this->user_uuid;
|
||||
|
||||
//grant temporary permissions
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('user_edit', 'temp');
|
||||
|
||||
//execute insert
|
||||
|
||||
@@ -258,7 +258,7 @@ class plugin_email {
|
||||
$hostname = gethostname();
|
||||
|
||||
//add the temporary permissions
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add("email_queue_add", 'temp');
|
||||
$p->add("email_queue_edit", 'temp');
|
||||
|
||||
|
||||
@@ -178,7 +178,7 @@ class plugin_ldap {
|
||||
$array['user_groups'][0]['user_uuid'] = $this->user_uuid;
|
||||
|
||||
//grant temporary permissions
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('user_add', 'temp');
|
||||
$p->add('user_group_add', 'temp');
|
||||
|
||||
|
||||
@@ -224,7 +224,7 @@ class plugin_totp {
|
||||
$array['users'][$x]['user_totp_secret'] = $this->user_totp_secret;
|
||||
|
||||
//add the user_edit permission
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add("user_edit", "temp");
|
||||
|
||||
//save the data
|
||||
|
||||
Reference in New Issue
Block a user