Ver Fonte

Add a new fax user group

markjcrane há 2 anos atrás
pai
commit
e6d7e4e495
2 ficheiros alterados com 11 adições e 0 exclusões
  1. 3 0
      core/menu/app_menu.php
  2. 8 0
      resources/classes/groups.php

+ 3 - 0
core/menu/app_menu.php

@@ -65,6 +65,7 @@
 	$apps[$x]['menu'][$y]['groups'][] = "admin";
 	$apps[$x]['menu'][$y]['groups'][] = "user";
 	$apps[$x]['menu'][$y]['groups'][] = "agent";
+	$apps[$x]['menu'][$y]['groups'][] = "fax";
 	$y++;
 	$apps[$x]['menu'][$y]['title']['en-us'] = "Accounts";
 	$apps[$x]['menu'][$y]['title']['en-gb'] = "Accounts";
@@ -130,6 +131,7 @@
 	$apps[$x]['menu'][$y]['groups'][] = "admin";
 	$apps[$x]['menu'][$y]['groups'][] = "user";
 	$apps[$x]['menu'][$y]['groups'][] = "agent";
+	$apps[$x]['menu'][$y]['groups'][] = "fax";
 	$y++;
 	$apps[$x]['menu'][$y]['title']['en-us'] = "Status";
 	$apps[$x]['menu'][$y]['title']['en-gb'] = "Status";
@@ -258,6 +260,7 @@
 	$apps[$x]['menu'][$y]['groups'][] = "admin";
 	$apps[$x]['menu'][$y]['groups'][] = "user";
 	$apps[$x]['menu'][$y]['groups'][] = "agent";
+	$apps[$x]['menu'][$y]['groups'][] = "fax";
 	$y++;
 
 ?>

+ 8 - 0
resources/classes/groups.php

@@ -389,6 +389,14 @@ if (!class_exists('groups')) {
 					$x++;
 					$array['groups'][$x]['group_uuid'] = uuid();
 					$array['groups'][$x]['domain_uuid'] = null;
+					$array['groups'][$x]['group_name'] = 'fax';
+					$array['groups'][$x]['group_level'] = '20';
+					$array['groups'][$x]['group_description'] = 'Fax User Group';
+					$array['groups'][$x]['group_protected'] = 'false';
+					$group_uuids[$array['groups'][$x]['group_name']] = $array['groups'][$x]['group_uuid'];
+					$x++;
+					$array['groups'][$x]['group_uuid'] = uuid();
+					$array['groups'][$x]['domain_uuid'] = null;
 					$array['groups'][$x]['group_name'] = 'public';
 					$array['groups'][$x]['group_level'] = '10';
 					$array['groups'][$x]['group_description'] = 'Public Group';