app_config.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. //application details
  3. $apps[$x]['name'] = 'Permissions';
  4. $apps[$x]['uuid'] = 'ce1498a0-46e2-487d-85de-4eec7122a984';
  5. $apps[$x]['category'] = '';
  6. $apps[$x]['subcategory'] = '';
  7. $apps[$x]['version'] = '';
  8. $apps[$x]['license'] = 'Mozilla Public License 1.1';
  9. $apps[$x]['url'] = 'http://www.fusionpbx.com';
  10. $apps[$x]['description']['en-us'] = '';
  11. //permission details
  12. $y = 0;
  13. $apps[$x]['permissions'][$y]['name'] = 'permission_view';
  14. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  15. $y++;
  16. $apps[$x]['permissions'][$y]['name'] = 'permission_add';
  17. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  18. $y++;
  19. $apps[$x]['permissions'][$y]['name'] = 'permission_edit';
  20. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  21. $y++;
  22. $apps[$x]['permissions'][$y]['name'] = 'permission_delete';
  23. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  24. $y++;
  25. $apps[$x]['permissions'][$y]['name'] = 'permission_all';
  26. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  27. $y++;
  28. //Permissions
  29. $y = 0;
  30. $apps[$x]['db'][$y]['table']['name'] = 'v_permissions';
  31. $apps[$x]['db'][$y]['table']['parent'] = '';
  32. $z = 0;
  33. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'permission_uuid';
  34. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  35. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  36. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  37. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
  38. $z++;
  39. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'application_uuid';
  40. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  41. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  42. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  43. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'false';
  44. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the application uuid.';
  45. $z++;
  46. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'application_name';
  47. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  48. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  49. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the application name.';
  50. $z++;
  51. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'permission_name';
  52. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  53. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  54. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the permission name.';
  55. $z++;
  56. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'permission_description';
  57. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  58. $apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'true';
  59. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the permission description.';
  60. $z++;
  61. ?>