Add temporary permissions so it will work from the command line.

This commit is contained in:
FusionPBX 2021-11-10 10:15:00 -07:00 committed by GitHub
parent c71ac8d103
commit 414116c562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -50,6 +50,11 @@ if ($domains_processed == 1) {
$x++;
}
//add the temporary permissions
$p = new permissions;
$p->add('dashboard_add', 'temp');
$p->add('dashboard_group_add', 'temp');
//save the data
$database = new database;
$database->app_name = 'dashboard';
@ -59,6 +64,10 @@ if ($domains_processed == 1) {
//view_array($result);
//exit;
//delete the temporary permissions
$p->delete('dashboard_add', 'temp');
$p->delete('dashboard_group_add', 'temp');
}
?>