mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update groups.php
This commit is contained in:
@@ -91,27 +91,32 @@ if (!class_exists('groups')) {
|
||||
$result = $prep_statement->fetchAll(PDO::FETCH_ASSOC);
|
||||
if (count($result) == 0) {
|
||||
$x = 0;
|
||||
$tmp[$x]['group_name'] = 'superadmin';
|
||||
$tmp[$x]['group_description'] = 'Super Administrator Group';
|
||||
$tmp[$x]['group_protected'] = 'false';
|
||||
//$groups[$x]['group_uuid'] = '';
|
||||
$groups[$x]['group_name'] = 'superadmin';
|
||||
$groups[$x]['group_description'] = 'Super Administrator Group';
|
||||
$groups[$x]['group_protected'] = 'false';
|
||||
$x++;
|
||||
$tmp[$x]['group_name'] = 'admin';
|
||||
$tmp[$x]['group_description'] = 'Administrator Group';
|
||||
$tmp[$x]['group_protected'] = 'false';
|
||||
//$groups[$x]['group_uuid'] = '';
|
||||
$groups[$x]['group_name'] = 'admin';
|
||||
$groups[$x]['group_description'] = 'Administrator Group';
|
||||
$groups[$x]['group_protected'] = 'false';
|
||||
$x++;
|
||||
$tmp[$x]['group_name'] = 'user';
|
||||
$tmp[$x]['group_description'] = 'User Group';
|
||||
$tmp[$x]['group_protected'] = 'false';
|
||||
//$groups[$x]['group_uuid'] = '';
|
||||
$groups[$x]['group_name'] = 'user';
|
||||
$groups[$x]['group_description'] = 'User Group';
|
||||
$groups[$x]['group_protected'] = 'false';
|
||||
$x++;
|
||||
$tmp[$x]['group_name'] = 'public';
|
||||
$tmp[$x]['group_description'] = 'Public Group';
|
||||
$tmp[$x]['group_protected'] = 'false';
|
||||
//$groups[$x]['group_uuid'] = '';
|
||||
$groups[$x]['group_name'] = 'public';
|
||||
$groups[$x]['group_description'] = 'Public Group';
|
||||
$groups[$x]['group_protected'] = 'false';
|
||||
$x++;
|
||||
$tmp[$x]['group_name'] = 'agent';
|
||||
$tmp[$x]['group_description'] = 'Call Center Agent Group';
|
||||
$tmp[$x]['group_protected'] = 'false';
|
||||
//$groups[$x]['group_uuid'] = '';
|
||||
$groups[$x]['group_name'] = 'agent';
|
||||
$groups[$x]['group_description'] = 'Call Center Agent Group';
|
||||
$groups[$x]['group_protected'] = 'false';
|
||||
$this->db->beginTransaction();
|
||||
foreach($tmp as $row) {
|
||||
foreach($groups as $row) {
|
||||
if (strlen($row['group_name']) > 0) {
|
||||
$sql = "insert into v_groups ";
|
||||
$sql .= "(";
|
||||
@@ -188,4 +193,4 @@ if (!class_exists('groups')) {
|
||||
$group = new groups;
|
||||
$group->defaults();
|
||||
*/
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user