From 414116c5625f275c25774dfc66924ee16fde4caa Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 10 Nov 2021 10:15:00 -0700 Subject: [PATCH] Add temporary permissions so it will work from the command line. --- core/dashboard/app_defaults.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/dashboard/app_defaults.php b/core/dashboard/app_defaults.php index d7c48ccc21..0d440e56f6 100644 --- a/core/dashboard/app_defaults.php +++ b/core/dashboard/app_defaults.php @@ -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'); + } ?>