浏览代码

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

FusionPBX 3 年之前
父节点
当前提交
715acc5502
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      core/dashboard/app_defaults.php

+ 9 - 0
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');
+
 }
 
 ?>