diff --git a/app/call_center/app_config.php b/app/call_center/app_config.php
index 7ac3185311..45df64f418 100644
--- a/app/call_center/app_config.php
+++ b/app/call_center/app_config.php
@@ -56,57 +56,57 @@
$apps[$x]['menu'][1]['groups'][] = 'superadmin';
//permission details
- $apps[$x]['permissions'][0]['name'] = 'call_center_queues_view';
+ $apps[$x]['permissions'][0]['name'] = 'call_center_queue_view';
$apps[$x]['permissions'][0]['menu']['uuid'] = '6c072b29-5b6c-49fc-008e-95e24c77de99';
$apps[$x]['permissions'][0]['groups'][] = 'agent';
$apps[$x]['permissions'][0]['groups'][] = 'admin';
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][1]['name'] = 'call_center_queues_add';
+ $apps[$x]['permissions'][1]['name'] = 'call_center_queue_add';
$apps[$x]['permissions'][1]['groups'][] = 'admin';
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][2]['name'] = 'call_center_queues_edit';
+ $apps[$x]['permissions'][2]['name'] = 'call_center_queue_edit';
$apps[$x]['permissions'][2]['groups'][] = 'admin';
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][3]['name'] = 'call_center_queues_delete';
+ $apps[$x]['permissions'][3]['name'] = 'call_center_queue_delete';
$apps[$x]['permissions'][3]['groups'][] = 'admin';
$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][4]['name'] = 'call_center_agents_view';
+ $apps[$x]['permissions'][4]['name'] = 'call_center_agent_view';
$apps[$x]['permissions'][4]['menu']['uuid'] = '597c483a-51a9-f95a-8d54-ea7d87ada2b8';
$apps[$x]['permissions'][4]['groups'][] = 'agent';
$apps[$x]['permissions'][4]['groups'][] = 'admin';
$apps[$x]['permissions'][4]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][5]['name'] = 'call_center_agents_add';
+ $apps[$x]['permissions'][5]['name'] = 'call_center_agent_add';
$apps[$x]['permissions'][5]['groups'][] = 'admin';
$apps[$x]['permissions'][5]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][6]['name'] = 'call_center_agents_edit';
+ $apps[$x]['permissions'][6]['name'] = 'call_center_agent_edit';
$apps[$x]['permissions'][6]['groups'][] = 'admin';
$apps[$x]['permissions'][6]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][7]['name'] = 'call_center_agents_delete';
+ $apps[$x]['permissions'][7]['name'] = 'call_center_agent_delete';
$apps[$x]['permissions'][7]['groups'][] = 'admin';
$apps[$x]['permissions'][7]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][8]['name'] = 'call_center_tiers_view';
+ $apps[$x]['permissions'][8]['name'] = 'call_center_tier_view';
$apps[$x]['permissions'][8]['menu']['uuid'] = '';
$apps[$x]['permissions'][8]['groups'][] = 'agent';
$apps[$x]['permissions'][8]['groups'][] = 'admin';
$apps[$x]['permissions'][8]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][9]['name'] = 'call_center_tiers_add';
+ $apps[$x]['permissions'][9]['name'] = 'call_center_tier_add';
$apps[$x]['permissions'][9]['groups'][] = 'admin';
$apps[$x]['permissions'][9]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][10]['name'] = 'call_center_tiers_edit';
+ $apps[$x]['permissions'][10]['name'] = 'call_center_tier_edit';
$apps[$x]['permissions'][10]['groups'][] = 'admin';
$apps[$x]['permissions'][10]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][11]['name'] = 'call_center_tiers_delete';
+ $apps[$x]['permissions'][11]['name'] = 'call_center_tier_delete';
$apps[$x]['permissions'][11]['groups'][] = 'admin';
$apps[$x]['permissions'][11]['groups'][] = 'superadmin';
diff --git a/app/call_center/call_center_agent_delete.php b/app/call_center/call_center_agent_delete.php
index 066b2e717b..c1cbcab5b6 100644
--- a/app/call_center/call_center_agent_delete.php
+++ b/app/call_center/call_center_agent_delete.php
@@ -26,7 +26,7 @@
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('call_center_agents_delete')) {
+if (permission_exists('call_center_agent_delete')) {
//access granted
}
else {
diff --git a/app/call_center/call_center_agent_edit.php b/app/call_center/call_center_agent_edit.php
index 1d6253c2de..9f913e4366 100644
--- a/app/call_center/call_center_agent_edit.php
+++ b/app/call_center/call_center_agent_edit.php
@@ -26,7 +26,7 @@
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('call_center_agents_add') || permission_exists('call_center_agents_edit')) {
+if (permission_exists('call_center_agent_add') || permission_exists('call_center_agent_edit')) {
//access granted
}
else {
diff --git a/app/call_center/call_center_agent_status.php b/app/call_center/call_center_agent_status.php
index 0ec1f87658..b0402b54a6 100644
--- a/app/call_center/call_center_agent_status.php
+++ b/app/call_center/call_center_agent_status.php
@@ -26,7 +26,7 @@
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('call_center_agents_view')) {
+if (permission_exists('call_center_agent_view')) {
//access granted
}
else {
diff --git a/app/call_center/call_center_agents.php b/app/call_center/call_center_agents.php
index 7f495427bc..26efb321f8 100644
--- a/app/call_center/call_center_agents.php
+++ b/app/call_center/call_center_agents.php
@@ -26,7 +26,7 @@
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('call_center_agents_view')) {
+if (permission_exists('call_center_agent_view')) {
//access granted
}
else {
@@ -128,7 +128,7 @@ require_once "resources/paging.php";
//echo th_order_by('agent_reject_delay_time', $text['label-reject_delay_time'], $order_by, $order);
//echo th_order_by('agent_busy_delay_time', $text['label-busy_delay_time'], $order_by, $order);
echo "
\n";
- if (permission_exists('call_center_agents_add')) {
+ if (permission_exists('call_center_agent_add')) {
echo " $v_link_label_add\n";
}
echo " | \n";
@@ -150,10 +150,10 @@ require_once "resources/paging.php";
//echo " ".$row[agent_reject_delay_time]." | \n";
//echo " ".$row[agent_busy_delay_time]." | \n";
echo " \n";
- if (permission_exists('call_center_agents_edit')) {
+ if (permission_exists('call_center_agent_edit')) {
echo " $v_link_label_edit\n";
}
- if (permission_exists('call_center_agents_delete')) {
+ if (permission_exists('call_center_agent_delete')) {
echo " $v_link_label_delete\n";
}
//echo " \n";
@@ -172,7 +172,7 @@ require_once "resources/paging.php";
echo " | | \n";
echo " $paging_controls | \n";
echo " \n";
- if (permission_exists('call_center_agents_add')) {
+ if (permission_exists('call_center_agent_add')) {
echo " $v_link_label_add\n";
}
echo " | \n";
diff --git a/app/call_center/call_center_queue_delete.php b/app/call_center/call_center_queue_delete.php
index efa1da489f..b4c882a6ea 100644
--- a/app/call_center/call_center_queue_delete.php
+++ b/app/call_center/call_center_queue_delete.php
@@ -26,7 +26,7 @@
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('call_center_queues_delete')) {
+if (permission_exists('call_center_queue_delete')) {
//access granted
}
else {
diff --git a/app/call_center/call_center_queue_edit.php b/app/call_center/call_center_queue_edit.php
index 600067815b..d373c0027b 100644
--- a/app/call_center/call_center_queue_edit.php
+++ b/app/call_center/call_center_queue_edit.php
@@ -26,7 +26,7 @@
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('call_center_queues_add') || permission_exists('call_center_queues_edit')) {
+if (permission_exists('call_center_queue_add') || permission_exists('call_center_queue_edit')) {
//access granted
}
else {
diff --git a/app/call_center/call_center_queues.php b/app/call_center/call_center_queues.php
index 2c2b60c401..80c2294bde 100644
--- a/app/call_center/call_center_queues.php
+++ b/app/call_center/call_center_queues.php
@@ -26,7 +26,7 @@
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('call_center_queues_view')) {
+if (permission_exists('call_center_queue_view')) {
//access granted
}
else {
@@ -131,7 +131,7 @@ require_once "resources/paging.php";
//echo th_order_by('queue_tier_rule_wait_multiply_level', $text['label-tier_rule_wait_multiply_level'], $order_by, $order);
echo th_order_by('queue_description', $text['label-description'], $order_by, $order);
echo "\n";
- if (permission_exists('call_center_queues_add')) {
+ if (permission_exists('call_center_queue_add')) {
echo " $v_link_label_add\n";
}
echo " | \n";
@@ -156,10 +156,10 @@ require_once "resources/paging.php";
//echo " ".$row[queue_tier_rule_wait_multiply_level]." | \n";
echo " ".$row[queue_description]." | \n";
echo " \n";
- if (permission_exists('call_center_queues_edit')) {
+ if (permission_exists('call_center_queue_edit')) {
echo " $v_link_label_edit\n";
}
- if (permission_exists('call_center_queues_delete')) {
+ if (permission_exists('call_center_queue_delete')) {
echo " $v_link_label_delete\n";
}
echo " | \n";
@@ -176,7 +176,7 @@ require_once "resources/paging.php";
echo " | \n";
echo " $paging_controls | \n";
echo " \n";
- if (permission_exists('call_center_queues_add')) {
+ if (permission_exists('call_center_queue_add')) {
echo " $v_link_label_add\n";
}
echo " | \n";
diff --git a/app/call_center/call_center_tier_delete.php b/app/call_center/call_center_tier_delete.php
index 2bb15362b6..35081939a5 100644
--- a/app/call_center/call_center_tier_delete.php
+++ b/app/call_center/call_center_tier_delete.php
@@ -26,7 +26,7 @@
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('call_center_tiers_delete')) {
+if (permission_exists('call_center_tier_delete')) {
//access granted
}
else {
diff --git a/app/call_center/call_center_tier_edit.php b/app/call_center/call_center_tier_edit.php
index 90145921b9..4a2578a028 100644
--- a/app/call_center/call_center_tier_edit.php
+++ b/app/call_center/call_center_tier_edit.php
@@ -26,7 +26,7 @@
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('call_center_tiers_add') || permission_exists('call_center_tiers_edit')) {
+if (permission_exists('call_center_tier_add') || permission_exists('call_center_tier_edit')) {
//access granted
}
else {
diff --git a/app/call_center/call_center_tiers.php b/app/call_center/call_center_tiers.php
index c419e750f7..d88cccee70 100644
--- a/app/call_center/call_center_tiers.php
+++ b/app/call_center/call_center_tiers.php
@@ -26,7 +26,7 @@
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('call_center_tiers_view')) {
+if (permission_exists('call_center_tier_view')) {
//access granted
}
else {
@@ -120,7 +120,7 @@ require_once "resources/paging.php";
echo th_order_by('tier_level', $text['label-tier_level'], $order_by, $order);
echo th_order_by('tier_position', $text['label-tier_position'], $order_by, $order);
echo "\n";
- if (permission_exists('call_center_tiers_add')) {
+ if (permission_exists('call_center_tier_add')) {
echo " $v_link_label_add\n";
}
echo " | \n";
@@ -136,10 +136,10 @@ require_once "resources/paging.php";
echo " ".$row[tier_level]." | \n";
echo " ".$row[tier_position]." | \n";
echo " \n";
- if (permission_exists('call_center_tiers_edit')) {
+ if (permission_exists('call_center_tier_edit')) {
echo " $v_link_label_edit\n";
}
- if (permission_exists('call_center_tiers_delete')) {
+ if (permission_exists('call_center_tier_delete')) {
echo " $v_link_label_delete\n";
}
echo " | \n";
@@ -157,7 +157,7 @@ require_once "resources/paging.php";
echo " | \n";
echo " $paging_controls | \n";
echo " \n";
- if (permission_exists('call_center_tiers_add')) {
+ if (permission_exists('call_center_tier_add')) {
echo " $v_link_label_add\n";
}
echo " | \n";
diff --git a/app/call_center/cmd.php b/app/call_center/cmd.php
index 4b92aeed1f..094aae48d2 100644
--- a/app/call_center/cmd.php
+++ b/app/call_center/cmd.php
@@ -26,7 +26,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('call_center_queues_add') || permission_exists('call_center_queues_edit')) {
+if (permission_exists('call_center_queue_add') || permission_exists('call_center_queue_edit')) {
//access granted
}
else {
diff --git a/app/calls_active/app_config.php b/app/calls_active/app_config.php
index c637256b06..afa22a449b 100644
--- a/app/calls_active/app_config.php
+++ b/app/calls_active/app_config.php
@@ -54,51 +54,51 @@
$apps[$x]['menu'][1]['groups'][] = 'superadmin';
//permission details
- $apps[$x]['permissions'][0]['name'] = 'calls_active_view';
+ $apps[$x]['permissions'][0]['name'] = 'call_active_view';
$apps[$x]['permissions'][0]['menu']['uuid'] = 'eba3d07f-dd5c-6b7b-6880-493b44113ade';
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][1]['name'] = 'calls_active_transfer';
+ $apps[$x]['permissions'][1]['name'] = 'call_active_transfer';
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][2]['name'] = 'calls_active_hangup';
+ $apps[$x]['permissions'][2]['name'] = 'call_active_hangup';
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][3]['name'] = 'calls_active_park';
+ $apps[$x]['permissions'][3]['name'] = 'call_active_park';
$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][4]['name'] = 'calls_active_rec';
+ $apps[$x]['permissions'][4]['name'] = 'call_active_rec';
$apps[$x]['permissions'][4]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][5]['name'] = 'extensions_active_view';
+ $apps[$x]['permissions'][5]['name'] = 'extension_active_view';
$apps[$x]['permissions'][0]['menu']['uuid'] = '6dd85c19-cb6b-5cca-bf32-499bbe936f79';
//$apps[$x]['permissions'][5]['groups'][] = 'user';
$apps[$x]['permissions'][5]['groups'][] = 'admin';
$apps[$x]['permissions'][5]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][6]['name'] = 'extensions_active_transfer';
+ $apps[$x]['permissions'][6]['name'] = 'extension_active_transfer';
$apps[$x]['permissions'][6]['groups'][] = 'admin';
$apps[$x]['permissions'][6]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][7]['name'] = 'extensions_active_hangup';
+ $apps[$x]['permissions'][7]['name'] = 'extension_active_hangup';
$apps[$x]['permissions'][7]['groups'][] = 'admin';
$apps[$x]['permissions'][7]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][8]['name'] = 'extensions_active_park';
+ $apps[$x]['permissions'][8]['name'] = 'extension_active_park';
$apps[$x]['permissions'][8]['groups'][] = 'admin';
$apps[$x]['permissions'][8]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][9]['name'] = 'extensions_active_rec';
+ $apps[$x]['permissions'][9]['name'] = 'extension_active_rec';
$apps[$x]['permissions'][9]['groups'][] = 'admin';
$apps[$x]['permissions'][9]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][10]['name'] = 'extensions_active_list_view';
+ $apps[$x]['permissions'][10]['name'] = 'extension_active_list_view';
$apps[$x]['permissions'][10]['menu']['uuid'] = '';
//$apps[$x]['permissions'][10]['groups'][] = 'user';
$apps[$x]['permissions'][10]['groups'][] = 'admin';
$apps[$x]['permissions'][10]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][11]['name'] = 'extensions_active_assigned_view';
+ $apps[$x]['permissions'][11]['name'] = 'extension_active_assigned_view';
$apps[$x]['permissions'][11]['menu']['uuid'] = '';
//$apps[$x]['permissions'][11]['groups'][] = 'user';
$apps[$x]['permissions'][11]['groups'][] = 'admin';
diff --git a/app/calls_active/calls_active.php b/app/calls_active/calls_active.php
index d51ca04d98..b0411b0caf 100644
--- a/app/calls_active/calls_active.php
+++ b/app/calls_active/calls_active.php
@@ -27,7 +27,7 @@ include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
include "app_languages.php";
-if (permission_exists('calls_active_view')) {
+if (permission_exists('call_active_view')) {
//access granted
}
else {
diff --git a/app/calls_active/calls_active_assigned_extensions_inc.php b/app/calls_active/calls_active_assigned_extensions_inc.php
index c5cc32198c..c3f76e4696 100644
--- a/app/calls_active/calls_active_assigned_extensions_inc.php
+++ b/app/calls_active/calls_active_assigned_extensions_inc.php
@@ -27,7 +27,7 @@ include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
include "app_languages.php";
-if (permission_exists('extensions_active_assigned_view')) {
+if (permission_exists('extension_active_assigned_view')) {
//add multi-lingual support
foreach($text as $key => $value) {
diff --git a/app/calls_active/calls_active_extensions.php b/app/calls_active/calls_active_extensions.php
index addb4a797d..845ba98990 100644
--- a/app/calls_active/calls_active_extensions.php
+++ b/app/calls_active/calls_active_extensions.php
@@ -27,7 +27,7 @@ include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
include "app_languages.php";
-if (permission_exists('extensions_active_view')) {
+if (permission_exists('extension_active_view')) {
//access granted
}
else {
diff --git a/app/calls_active/calls_active_extensions_inc.php b/app/calls_active/calls_active_extensions_inc.php
index 8be049451b..863d10d72f 100644
--- a/app/calls_active/calls_active_extensions_inc.php
+++ b/app/calls_active/calls_active_extensions_inc.php
@@ -27,7 +27,7 @@ include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
include "app_languages.php";
-if (permission_exists('extensions_active_view')) {
+if (permission_exists('extension_active_view')) {
//access granted
}
else {
@@ -320,7 +320,7 @@ else {
include "calls_active_assigned_extensions_inc.php";
//list all extensions
- if (permission_exists('extensions_active_list_view')) {
+ if (permission_exists('extension_active_list_view')) {
echo "\n";
echo "\n";
echo "| \n";
diff --git a/app/calls_active/calls_active_inc.php b/app/calls_active/calls_active_inc.php
index bd78231dfb..55c3ede752 100644
--- a/app/calls_active/calls_active_inc.php
+++ b/app/calls_active/calls_active_inc.php
@@ -27,7 +27,7 @@ include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
include "app_languages.php";
-if (permission_exists('calls_active_view')) {
+if (permission_exists('call_active_view')) {
//access granted
}
else {
diff --git a/app/calls_active/calls_exec.php b/app/calls_active/calls_exec.php
index 7f2b050b7f..ff1c5e3129 100644
--- a/app/calls_active/calls_exec.php
+++ b/app/calls_active/calls_exec.php
@@ -29,7 +29,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('calls_active_view') || permission_exists('extensions_active_view')) {
+if (permission_exists('call_active_view') || permission_exists('extension_active_view')) {
//access granted
}
else {
diff --git a/app/conference_centers/conference_center_edit.php b/app/conference_centers/conference_center_edit.php
index b7a93a72b8..2b76b3df9e 100644
--- a/app/conference_centers/conference_center_edit.php
+++ b/app/conference_centers/conference_center_edit.php
@@ -325,7 +325,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo " |
\n";
echo "| ".$text['title-conference-center']." | \n";
echo "\n";
- if (permission_exists('conferences_active_advanced_view')) {
+ if (permission_exists('conference_active_advanced_view')) {
echo " \n";
}
echo " \n";
diff --git a/app/conference_centers/conference_centers.php b/app/conference_centers/conference_centers.php
index d132f76776..c94dccc8a3 100644
--- a/app/conference_centers/conference_centers.php
+++ b/app/conference_centers/conference_centers.php
@@ -65,7 +65,7 @@ else {
echo " |
\n";
echo "| ".$text['title-conference-centers']." | \n";
echo "\n";
- if (permission_exists('conferences_active_advanced_view')) {
+ if (permission_exists('conference_active_advanced_view')) {
echo " \n";
}
echo " \n";
diff --git a/app/conference_centers/conference_session_details.php b/app/conference_centers/conference_session_details.php
index b81df4c4ee..b854b92065 100644
--- a/app/conference_centers/conference_session_details.php
+++ b/app/conference_centers/conference_session_details.php
@@ -95,7 +95,7 @@ else {
}
if (strlen($tmp_name) > 0 && file_exists($tmp_dir.'/'.$tmp_name)) {
if (permission_exists('conference_session_play')) {
- echo " \n";
+ echo " \n";
//echo " ".$text['label-play']."\n";
echo " \n";
//echo " \n";
@@ -105,7 +105,7 @@ else {
//echo " ".$text['label-download']."\n";
echo " \n";
//echo " \n";
- //echo " \n";
+ //echo " \n";
echo " \n";
}
echo " \n";
diff --git a/app/conference_centers/conference_sessions.php b/app/conference_centers/conference_sessions.php
index f0ffa1b141..37930a3620 100644
--- a/app/conference_centers/conference_sessions.php
+++ b/app/conference_centers/conference_sessions.php
@@ -165,7 +165,7 @@ else {
echo " ".$text['label-details']." \n";
if (strlen($tmp_name) > 0 && file_exists($tmp_dir.'/'.$tmp_name)) {
if (permission_exists('conference_session_play')) {
- echo " \n";
+ echo " \n";
echo " ".$text['label-play']."\n";
echo " \n";
echo " \n";
diff --git a/app/conferences/conferences.php b/app/conferences/conferences.php
index 7b912f1539..399540218b 100644
--- a/app/conferences/conferences.php
+++ b/app/conferences/conferences.php
@@ -62,7 +62,7 @@ require_once "resources/paging.php";
echo " |
\n";
echo " \n";
echo " ".$text['description']." \n";
- if (permission_exists('conferences_active_advanced_view')) {
+ if (permission_exists('conference_active_advanced_view')) {
echo " Show ".$text['title-2']." ".$text['description-2']."
\n";
}
echo " | \n";
diff --git a/app/conferences_active/app_config.php b/app/conferences_active/app_config.php
index bd2cf44ace..efe658fb33 100644
--- a/app/conferences_active/app_config.php
+++ b/app/conferences_active/app_config.php
@@ -38,38 +38,38 @@
$apps[$x]['menu'][0]['groups'][] = 'user';
//permission details
- $apps[$x]['permissions'][0]['name'] = 'conferences_active_view';
+ $apps[$x]['permissions'][0]['name'] = 'conference_active_view';
$apps[$x]['permissions'][0]['menu']['uuid'] = '2d857bbb-43b9-b8f7-a138-642868e0453a';
$apps[$x]['permissions'][0]['groups'][] = 'user';
$apps[$x]['permissions'][0]['groups'][] = 'admin';
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][2]['name'] = 'conferences_active_lock';
+ $apps[$x]['permissions'][2]['name'] = 'conference_active_lock';
$apps[$x]['permissions'][2]['groups'][] = 'user';
$apps[$x]['permissions'][2]['groups'][] = 'admin';
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][3]['name'] = 'conferences_active_kick';
+ $apps[$x]['permissions'][3]['name'] = 'conference_active_kick';
$apps[$x]['permissions'][3]['groups'][] = 'user';
$apps[$x]['permissions'][3]['groups'][] = 'admin';
$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][4]['name'] = 'conferences_active_energy';
+ $apps[$x]['permissions'][4]['name'] = 'conference_active_energy';
//$apps[$x]['permissions'][4]['groups'][] = 'user';
//$apps[$x]['permissions'][4]['groups'][] = 'admin';
//$apps[$x]['permissions'][4]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][5]['name'] = 'conferences_active_volume';
+ $apps[$x]['permissions'][5]['name'] = 'conference_active_volume';
//$apps[$x]['permissions'][5]['groups'][] = 'user';
//$apps[$x]['permissions'][5]['groups'][] = 'admin';
//$apps[$x]['permissions'][5]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][6]['name'] = 'conferences_active_gain';
+ $apps[$x]['permissions'][6]['name'] = 'conference_active_gain';
//$apps[$x]['permissions'][6]['groups'][] = 'user';
//$apps[$x]['permissions'][6]['groups'][] = 'admin';
//$apps[$x]['permissions'][6]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][7]['name'] = 'conferences_active_mute';
+ $apps[$x]['permissions'][7]['name'] = 'conference_active_mute';
$apps[$x]['permissions'][7]['groups'][] = 'user';
$apps[$x]['permissions'][7]['groups'][] = 'admin';
$apps[$x]['permissions'][7]['groups'][] = 'superadmin';
@@ -79,12 +79,12 @@
$apps[$x]['permissions'][8]['groups'][] = 'admin';
$apps[$x]['permissions'][8]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][8]['name'] = 'conferences_active_video';
+ $apps[$x]['permissions'][8]['name'] = 'conference_active_video';
$apps[$x]['permissions'][8]['groups'][] = 'user';
$apps[$x]['permissions'][8]['groups'][] = 'admin';
$apps[$x]['permissions'][8]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][9]['name'] = 'conferences_active_advanced_view';
+ $apps[$x]['permissions'][9]['name'] = 'conference_active_advanced_view';
$apps[$x]['permissions'][9]['groups'][] = 'admin';
$apps[$x]['permissions'][9]['groups'][] = 'superadmin';
?>
\ No newline at end of file
diff --git a/app/conferences_active/conference_exec.php b/app/conferences_active/conference_exec.php
index 937a992a13..f21af3adbb 100644
--- a/app/conferences_active/conference_exec.php
+++ b/app/conferences_active/conference_exec.php
@@ -41,7 +41,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('conferences_active_view')) {
+if (permission_exists('conference_active_view')) {
//access granted
}
else {
diff --git a/app/conferences_active/conference_interactive.php b/app/conferences_active/conference_interactive.php
index 17896f314d..67d5fa2a75 100644
--- a/app/conferences_active/conference_interactive.php
+++ b/app/conferences_active/conference_interactive.php
@@ -27,7 +27,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('conferences_active_view')) {
+if (permission_exists('conference_active_view')) {
//access granted
}
else {
diff --git a/app/conferences_active/conference_interactive_inc.php b/app/conferences_active/conference_interactive_inc.php
index dfe709a818..e897a843b1 100644
--- a/app/conferences_active/conference_interactive_inc.php
+++ b/app/conferences_active/conference_interactive_inc.php
@@ -27,7 +27,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('conferences_active_view')) {
+if (permission_exists('conference_active_view')) {
//access granted
}
else {
@@ -127,7 +127,7 @@ else {
else {
echo " ".$text['label-not-recording']." ";
}
- if (permission_exists('conferences_active_lock')) {
+ if (permission_exists('conference_active_lock')) {
if ($locked == "true") {
echo " \n";
}
@@ -159,7 +159,7 @@ else {
echo "".$text['label-speak']." | \n";
echo "".$text['label-talking']." | \n";
echo "".$text['label-last-talk']." | \n";
- if (permission_exists('conferences_active_video')) {
+ if (permission_exists('conference_active_video')) {
echo "".$text['label-video']." | \n";
}
echo "".$text['label-floor']." | \n";
@@ -219,7 +219,7 @@ else {
echo "".$text['label-no']." | \n";
}
echo "$last_talking_formatted | \n";
- if (permission_exists('conferences_active_video')) {
+ if (permission_exists('conference_active_video')) {
if ($flag_has_video == "true") {
echo "".$text['label-yes']." | \n";
}
@@ -235,27 +235,27 @@ else {
}
echo "\n";
//energy
- if (permission_exists('conferences_active_energy')) {
+ if (permission_exists('conference_active_energy')) {
echo " \n";
echo " \n";
//echo " +".$text['label-energy']." \n";
//echo " -".$text['label-energy']." \n";
}
//volume
- if (permission_exists('conferences_active_volume')) {
+ if (permission_exists('conference_active_volume')) {
echo " \n";
echo " \n";
//echo " +".$text['label-volume']." \n";
//echo " -".$text['label-volume']." \n";
}
- if (permission_exists('conferences_active_gain')) {
+ if (permission_exists('conference_active_gain')) {
echo " \n";
echo " \n";
//echo " +".$text['label-gain']." \n";
//echo " -".$text['label-gain']." \n";
}
//mute and unmute
- if (permission_exists('conferences_active_mute')) {
+ if (permission_exists('conference_active_mute')) {
if ($flag_can_speak == "true") {
echo " \n";
//echo " ".$text['label-mute']." \n";
@@ -277,7 +277,7 @@ else {
}
}
//kick someone from the conference
- if (permission_exists('conferences_active_kick')) {
+ if (permission_exists('conference_active_kick')) {
echo " \n";
//echo " ".$text['label-kick']." \n";
}
diff --git a/app/conferences_active/conferences_active.php b/app/conferences_active/conferences_active.php
index c7b4efe4df..efe9e86557 100644
--- a/app/conferences_active/conferences_active.php
+++ b/app/conferences_active/conferences_active.php
@@ -27,7 +27,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('conferences_active_advanced_view')) {
+if (permission_exists('conference_active_advanced_view')) {
//access granted
}
else {
diff --git a/app/conferences_active/conferences_active_inc.php b/app/conferences_active/conferences_active_inc.php
index 3425454fb1..ed8151f346 100644
--- a/app/conferences_active/conferences_active_inc.php
+++ b/app/conferences_active/conferences_active_inc.php
@@ -27,7 +27,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('conferences_active_advanced_view')) {
+if (permission_exists('conference_active_advanced_view')) {
//access granted
}
else {
diff --git a/app/contacts/app_config.php b/app/contacts/app_config.php
index 8ff28354d0..5221d2a9d0 100644
--- a/app/contacts/app_config.php
+++ b/app/contacts/app_config.php
@@ -38,22 +38,22 @@
$apps[$x]['menu'][$y]['groups'][] = 'superadmin';
//permission details
- $apps[$x]['permissions'][0]['name'] = 'contacts_view';
+ $apps[$x]['permissions'][0]['name'] = 'contact_view';
$apps[$x]['permissions'][0]['menu']['uuid'] = 'f14e6ab6-6565-d4e6-cbad-a51d2e3e8ec6';
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
//$apps[$x]['permissions'][0]['groups'][] = 'user';
$apps[$x]['permissions'][0]['groups'][] = 'admin';
- $apps[$x]['permissions'][1]['name'] = 'contacts_add';
+ $apps[$x]['permissions'][1]['name'] = 'contact_add';
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
$apps[$x]['permissions'][1]['groups'][] = 'admin';
- $apps[$x]['permissions'][2]['name'] = 'contacts_edit';
+ $apps[$x]['permissions'][2]['name'] = 'contact_edit';
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
$apps[$x]['permissions'][2]['groups'][] = 'admin';
//$apps[$x]['permissions'][2]['groups'][] = 'user';
- $apps[$x]['permissions'][3]['name'] = 'contacts_delete';
+ $apps[$x]['permissions'][3]['name'] = 'contact_delete';
$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
$apps[$x]['permissions'][3]['groups'][] = 'admin';
diff --git a/app/contacts/contact_addresses.php b/app/contacts/contact_addresses.php
index 46ef1b8c41..b78953d7ac 100644
--- a/app/contacts/contact_addresses.php
+++ b/app/contacts/contact_addresses.php
@@ -26,7 +26,7 @@
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('contacts_view')) {
+if (permission_exists('contact_view')) {
//access granted
}
else {
diff --git a/app/contacts/contact_addresses_delete.php b/app/contacts/contact_addresses_delete.php
index c748a02430..346d2ed104 100644
--- a/app/contacts/contact_addresses_delete.php
+++ b/app/contacts/contact_addresses_delete.php
@@ -26,7 +26,7 @@
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('contacts_delete')) {
+if (permission_exists('contact_delete')) {
//access granted
}
else {
@@ -57,7 +57,7 @@ if (strlen($id)>0) {
}
require_once "resources/header.php";
-echo "\n";
+echo "\n";
echo " \n";
echo $text['message-delete']."\n";
echo " \n";
diff --git a/app/contacts/contact_addresses_edit.php b/app/contacts/contact_addresses_edit.php
index a8e598b30b..f9cc615521 100644
--- a/app/contacts/contact_addresses_edit.php
+++ b/app/contacts/contact_addresses_edit.php
@@ -26,7 +26,7 @@
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('contacts_edit')) {
+if (permission_exists('contact_edit')) {
//access granted
}
else {
@@ -140,7 +140,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
unset($sql);
require_once "resources/header.php";
- echo "\n";
+ echo "\n";
echo "\n";
echo $text['message-add']."\n";
echo " \n";
@@ -168,7 +168,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
unset($sql);
require_once "resources/header.php";
- echo "\n";
+ echo "\n";
echo "\n";
echo $text['message-update']."\n";
echo " \n";
@@ -232,7 +232,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo $text['header-contact_addresses-add'];
}
echo " | \n";
- echo " | \n";
+ echo " | \n";
echo "
\n";
echo "\n";
echo "| \n";
diff --git a/app/contacts/contact_import.php b/app/contacts/contact_import.php
index f2b3b14dd5..3d1a6657ea 100644
--- a/app/contacts/contact_import.php
+++ b/app/contacts/contact_import.php
@@ -26,7 +26,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('contacts_add')) {
+if (permission_exists('contact_add')) {
//access granted
}
else {
@@ -62,7 +62,7 @@ else {
$enclosure = check_str($_GET["data_enclosure"]);
//upload the contact csv
- if (($_POST['submit'] == "Upload") && is_uploaded_file($_FILES['ulfile']['tmp_name']) && permission_exists('recordings_upload')) {
+ if (($_POST['submit'] == "Upload") && is_uploaded_file($_FILES['ulfile']['tmp_name']) && permission_exists('recording_upload')) {
//copy the csv file
if (check_str($_POST['type']) == 'csv') {
move_uploaded_file($_FILES['ulfile']['tmp_name'], $_SESSION['server']['temp']['dir'].'/'.$_FILES['ulfile']['name']);
diff --git a/app/contacts/contact_notes.php b/app/contacts/contact_notes.php
index eb99733f5f..f00a101459 100644
--- a/app/contacts/contact_notes.php
+++ b/app/contacts/contact_notes.php
@@ -26,7 +26,7 @@
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('contacts_view')) {
+if (permission_exists('contact_view')) {
//access granted
}
else {
diff --git a/app/contacts/contact_notes_delete.php b/app/contacts/contact_notes_delete.php
index 2a6b5416bb..2d3aba426e 100644
--- a/app/contacts/contact_notes_delete.php
+++ b/app/contacts/contact_notes_delete.php
@@ -26,7 +26,7 @@
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('contacts_delete')) {
+if (permission_exists('contact_delete')) {
//access granted
}
else {
@@ -56,7 +56,7 @@ if (strlen($id)>0) {
}
require_once "resources/header.php";
-echo "\n";
+echo "\n";
echo " \n";
echo $text['message-delete']."\n";
echo " \n";
diff --git a/app/contacts/contact_notes_edit.php b/app/contacts/contact_notes_edit.php
index d5a3aaf792..bb166ea14f 100644
--- a/app/contacts/contact_notes_edit.php
+++ b/app/contacts/contact_notes_edit.php
@@ -26,7 +26,7 @@
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('contacts_edit')) {
+if (permission_exists('contact_edit')) {
//access granted
}
else {
@@ -111,7 +111,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
unset($sql);
require_once "resources/header.php";
- echo "\n";
+ echo "\n";
echo "\n";
echo $text['message-add']."\n";
echo " \n";
@@ -131,7 +131,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
unset($sql);
require_once "resources/header.php";
- echo "\n";
+ echo "\n";
echo "\n";
echo $text['message-update']."\n";
echo " \n";
@@ -187,7 +187,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
if ($action == "update") {
echo " | ".$text['header-contact_notes-edit']." | \n";
}
- echo " | \n";
+ echo " | \n";
echo "
\n";
echo "\n";
echo "| \n";
diff --git a/app/contacts/contact_phones.php b/app/contacts/contact_phones.php
index cd75a80b6c..a783487d84 100644
--- a/app/contacts/contact_phones.php
+++ b/app/contacts/contact_phones.php
@@ -26,7 +26,7 @@
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('contacts_view')) {
+if (permission_exists('contact_view')) {
//access granted
}
else {
diff --git a/app/contacts/contact_phones_delete.php b/app/contacts/contact_phones_delete.php
index 36f440fc9a..51774cb586 100644
--- a/app/contacts/contact_phones_delete.php
+++ b/app/contacts/contact_phones_delete.php
@@ -26,7 +26,7 @@
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('contacts_delete')) {
+if (permission_exists('contact_delete')) {
//access granted
}
else {
@@ -56,7 +56,7 @@ if (strlen($id)>0) {
}
require_once "resources/header.php";
-echo "\n";
+echo "\n";
echo " \n";
echo $text['message-delete']."\n";
echo " \n";
diff --git a/app/contacts/contact_phones_edit.php b/app/contacts/contact_phones_edit.php
index eaa86f4bd7..defe6129ce 100644
--- a/app/contacts/contact_phones_edit.php
+++ b/app/contacts/contact_phones_edit.php
@@ -26,7 +26,7 @@
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('contacts_edit')) {
+if (permission_exists('contact_edit')) {
//access granted
}
else {
@@ -115,7 +115,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
unset($sql);
require_once "resources/header.php";
- echo "\n";
+ echo "\n";
echo "\n";
echo $text['message-add']."\n";
echo " \n";
@@ -136,7 +136,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
unset($sql);
require_once "resources/header.php";
- echo "\n";
+ echo "\n";
echo "\n";
echo $text['message-update']."\n";
echo " \n";
@@ -192,7 +192,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo $text['header-contact_phones-add'];
}
echo " | \n";
- echo " | \n";
+ echo " | \n";
echo "
\n";
echo "\n";
echo "| \n";
diff --git a/app/contacts/contacts.php b/app/contacts/contacts.php
index 18d3b3c6ab..1e308f33e9 100644
--- a/app/contacts/contacts.php
+++ b/app/contacts/contacts.php
@@ -26,7 +26,7 @@
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('contacts_view')) {
+if (permission_exists('contact_view')) {
//access granted
}
else {
@@ -72,7 +72,7 @@ require_once "resources/paging.php";
echo " \n";
echo " | \n";
echo " \n";
- if (permission_exists('contacts_add')) {
+ if (permission_exists('contact_add')) {
echo " \n";
echo " \n";
echo " | \n";
@@ -199,7 +199,7 @@ require_once "resources/paging.php";
//echo th_order_by('contact_time_zone', $text['label-contact_time_zone'], $order_by, $order);
//echo th_order_by('contact_note', $text['label-contact_note'], $order_by, $order);
echo "\n";
- echo " $v_link_label_add\n";
+ echo " $v_link_label_add\n";
echo " | \n";
echo "
\n";
@@ -219,8 +219,8 @@ require_once "resources/paging.php";
//echo " | ".$row['contact_time_zone']." | \n";
//echo " ".$row['contact_note']." | \n";
echo " \n";
- echo " $v_link_label_edit\n";
- echo " $v_link_label_delete\n";
+ echo " $v_link_label_edit\n";
+ echo " $v_link_label_delete\n";
echo " | \n";
echo "
\n";
if ($c==0) { $c=1; } else { $c=0; }
@@ -235,7 +235,7 @@ require_once "resources/paging.php";
echo " | \n";
echo " $paging_controls | \n";
echo " \n";
- echo " $v_link_label_add\n";
+ echo " $v_link_label_add\n";
echo " | \n";
echo " \n";
echo "
\n";
diff --git a/app/contacts/contacts_delete.php b/app/contacts/contacts_delete.php
index 9e2286f11e..2fc5bac374 100644
--- a/app/contacts/contacts_delete.php
+++ b/app/contacts/contacts_delete.php
@@ -26,7 +26,7 @@
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('contacts_delete')) {
+if (permission_exists('contact_delete')) {
//access granted
}
else {
diff --git a/app/contacts/contacts_edit.php b/app/contacts/contacts_edit.php
index c4585c9407..c8e64ccf82 100644
--- a/app/contacts/contacts_edit.php
+++ b/app/contacts/contacts_edit.php
@@ -26,7 +26,7 @@
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('contacts_edit')) {
+if (permission_exists('contact_edit')) {
//access granted
}
else {
diff --git a/app/contacts/contacts_vcard.php b/app/contacts/contacts_vcard.php
index 779e5bac4b..c8bd3ef289 100644
--- a/app/contacts/contacts_vcard.php
+++ b/app/contacts/contacts_vcard.php
@@ -26,7 +26,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('contacts_view')) {
+if (permission_exists('contact_view')) {
//access granted
}
else {
diff --git a/app/dialplan/dialplan_copy.php b/app/dialplan/dialplan_copy.php
index e54a20b972..4e71ea35ee 100644
--- a/app/dialplan/dialplan_copy.php
+++ b/app/dialplan/dialplan_copy.php
@@ -31,7 +31,7 @@ if (permission_exists('dialplan_add')
|| permission_exists('inbound_route_add')
|| permission_exists('outbound_route_add')
|| permission_exists('fifo_add')
- || permission_exists('time_conditions_add')) {
+ || permission_exists('time_condition_add')) {
//access granted
}
else {
diff --git a/app/dialplan/dialplan_delete.php b/app/dialplan/dialplan_delete.php
index a9e085e8b8..48f4dc9f96 100644
--- a/app/dialplan/dialplan_delete.php
+++ b/app/dialplan/dialplan_delete.php
@@ -30,7 +30,7 @@ if (permission_exists('dialplan_delete')
|| permission_exists('inbound_route_delete')
|| permission_exists('outbound_route_delete')
|| permission_exists('fifo_delete')
- || permission_exists('time_conditions_delete')) {
+ || permission_exists('time_condition_delete')) {
//access granted
}
else {
diff --git a/app/dialplan/dialplan_details_delete.php b/app/dialplan/dialplan_details_delete.php
index 46d6082eca..2de3b918e0 100644
--- a/app/dialplan/dialplan_details_delete.php
+++ b/app/dialplan/dialplan_details_delete.php
@@ -30,7 +30,7 @@ if (permission_exists('dialplan_delete')
|| permission_exists('inbound_route_delete')
|| permission_exists('outbound_route_delete')
|| permission_exists('fifo_delete')
- || permission_exists('time_conditions_delete')) {
+ || permission_exists('time_condition_delete')) {
//access granted
}
else {
diff --git a/app/dialplan/dialplan_details_edit.php b/app/dialplan/dialplan_details_edit.php
index 2a28e399ff..1e2cf23afa 100644
--- a/app/dialplan/dialplan_details_edit.php
+++ b/app/dialplan/dialplan_details_edit.php
@@ -34,8 +34,8 @@ if (permission_exists('dialplan_add')
|| permission_exists('outbound_route_edit')
|| permission_exists('fifo_edit')
|| permission_exists('fifo_add')
- || permission_exists('time_conditions_add')
- || permission_exists('time_conditions_edit')) {
+ || permission_exists('time_condition_add')
+ || permission_exists('time_condition_edit')) {
//access granted
}
else {
diff --git a/app/dialplan/dialplan_edit.php b/app/dialplan/dialplan_edit.php
index 171e45791d..3849cbc7d4 100644
--- a/app/dialplan/dialplan_edit.php
+++ b/app/dialplan/dialplan_edit.php
@@ -35,8 +35,8 @@ if (permission_exists('dialplan_add')
|| permission_exists('outbound_route_edit')
|| permission_exists('fifo_edit')
|| permission_exists('fifo_add')
- || permission_exists('time_conditions_add')
- || permission_exists('time_conditions_edit')) {
+ || permission_exists('time_condition_add')
+ || permission_exists('time_condition_edit')) {
//access granted
}
else {
diff --git a/app/dialplan/dialplans.php b/app/dialplan/dialplans.php
index 99f60cd74d..4a92d2f4f2 100644
--- a/app/dialplan/dialplans.php
+++ b/app/dialplan/dialplans.php
@@ -213,7 +213,7 @@ else {
}
}
elseif ($app_uuid == "4b821450-926b-175a-af93-a03c441818b1") {
- if (permission_exists('time_conditions_add')) {
+ if (permission_exists('time_condition_add')) {
echo " $v_link_label_add\n";
}
}
@@ -285,10 +285,10 @@ else {
}
}
elseif ($app_uuid == "4b821450-926b-175a-af93-a03c441818b1") {
- if (permission_exists('time_conditions_edit')) {
+ if (permission_exists('time_condition_edit')) {
echo " $v_link_label_edit\n";
}
- if (permission_exists('time_conditions_delete')) {
+ if (permission_exists('time_condition_delete')) {
echo " $v_link_label_delete\n";
}
}
@@ -331,7 +331,7 @@ else {
}
}
elseif ($app_uuid == "4b821450-926b-175a-af93-a03c441818b1") {
- if (permission_exists('time_conditions_add')) {
+ if (permission_exists('time_condition_add')) {
echo " $v_link_label_add\n";
}
}
diff --git a/app/fifo_list/app_config.php b/app/fifo_list/app_config.php
index e59f18c694..8ce6ca3e13 100644
--- a/app/fifo_list/app_config.php
+++ b/app/fifo_list/app_config.php
@@ -37,19 +37,19 @@
$apps[$x]['menu'][0]['groups'][] = 'superadmin';
//permission details
- $apps[$x]['permissions'][0]['name'] = 'active_queues_view';
+ $apps[$x]['permissions'][0]['name'] = 'active_queue_view';
$apps[$x]['permissions'][0]['groups'][] = 'admin';
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][1]['name'] = 'active_queues_add';
+ $apps[$x]['permissions'][1]['name'] = 'active_queue_add';
$apps[$x]['permissions'][1]['groups'][] = 'admin';
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][2]['name'] = 'active_queues_edit';
+ $apps[$x]['permissions'][2]['name'] = 'active_queue_edit';
$apps[$x]['permissions'][2]['groups'][] = 'admin';
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][3]['name'] = 'active_queues_delete';
+ $apps[$x]['permissions'][3]['name'] = 'active_queue_delete';
$apps[$x]['permissions'][3]['groups'][] = 'admin';
$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
?>
\ No newline at end of file
diff --git a/app/fifo_list/fifo_exec.php b/app/fifo_list/fifo_exec.php
index 4e0df454a4..9e17f2d46f 100644
--- a/app/fifo_list/fifo_exec.php
+++ b/app/fifo_list/fifo_exec.php
@@ -26,7 +26,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('active_queues_edit')) {
+if (permission_exists('active_queue_edit')) {
//access granted
}
else {
diff --git a/app/fifo_list/fifo_interactive.php b/app/fifo_list/fifo_interactive.php
index a3b41d50e2..9888296dc3 100644
--- a/app/fifo_list/fifo_interactive.php
+++ b/app/fifo_list/fifo_interactive.php
@@ -26,7 +26,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('active_queues_view')) {
+if (permission_exists('active_queue_view')) {
//access granted
}
else {
diff --git a/app/fifo_list/fifo_interactive_inc.php b/app/fifo_list/fifo_interactive_inc.php
index ec89cde752..27f8ddbb63 100644
--- a/app/fifo_list/fifo_interactive_inc.php
+++ b/app/fifo_list/fifo_interactive_inc.php
@@ -26,7 +26,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('active_queues_view')) {
+if (permission_exists('active_queue_view')) {
//access granted
}
else {
diff --git a/app/fifo_list/fifo_list.php b/app/fifo_list/fifo_list.php
index 0e5441b3be..1f25c13aa6 100644
--- a/app/fifo_list/fifo_list.php
+++ b/app/fifo_list/fifo_list.php
@@ -26,7 +26,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('active_queues_view')) {
+if (permission_exists('active_queue_view')) {
//access granted
}
else {
diff --git a/app/fifo_list/fifo_list_inc.php b/app/fifo_list/fifo_list_inc.php
index 07d951ffe3..b6d3c8751e 100644
--- a/app/fifo_list/fifo_list_inc.php
+++ b/app/fifo_list/fifo_list_inc.php
@@ -26,7 +26,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('active_queues_view')) {
+if (permission_exists('active_queue_view')) {
//access granted
}
else {
diff --git a/app/modules/app_config.php b/app/modules/app_config.php
index a31d40b0a8..5822adb5a1 100644
--- a/app/modules/app_config.php
+++ b/app/modules/app_config.php
@@ -36,16 +36,16 @@
$apps[$x]['menu'][0]['groups'][] = 'superadmin';
//permission details
- $apps[$x]['permissions'][0]['name'] = 'modules_view';
+ $apps[$x]['permissions'][0]['name'] = 'module_view';
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][1]['name'] = 'modules_add';
+ $apps[$x]['permissions'][1]['name'] = 'module_add';
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][2]['name'] = 'modules_edit';
+ $apps[$x]['permissions'][2]['name'] = 'module_edit';
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][3]['name'] = 'modules_delete';
+ $apps[$x]['permissions'][3]['name'] = 'module_delete';
$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
//schema details
diff --git a/app/modules/modules.php b/app/modules/modules.php
index 2eab6a8039..9586e686be 100644
--- a/app/modules/modules.php
+++ b/app/modules/modules.php
@@ -26,7 +26,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('modules_view')) {
+if (permission_exists('module_view')) {
//access granted
}
else {
@@ -123,7 +123,7 @@ if (strlen($_GET["a"]) > 0) {
$tmp_module_header .= "".$text['label-action']." | \n";
$tmp_module_header .= "".$text['label-enabled']." | \n";
$tmp_module_header .= "\n";
- $tmp_module_header .= " $v_link_label_add\n";
+ $tmp_module_header .= " $v_link_label_add\n";
$tmp_module_header .= " | \n";
$tmp_module_header .= "\n";
@@ -140,8 +140,8 @@ if (strlen($_GET["a"]) > 0) {
echo " | | \n";
echo " | \n";
echo " \n";
- if (permission_exists('modules_add')) {
- echo " $v_link_label_add\n";
+ if (permission_exists('module_add')) {
+ echo " $v_link_label_add\n";
}
echo " | \n";
echo "
\n";
@@ -181,11 +181,11 @@ if (strlen($_GET["a"]) > 0) {
}
echo "\n";
echo " \n";
- if (permission_exists('modules_edit')) {
- echo " $v_link_label_edit\n";
+ if (permission_exists('module_edit')) {
+ echo " $v_link_label_edit\n";
}
- if (permission_exists('modules_delete')) {
- echo " $v_link_label_delete\n";
+ if (permission_exists('module_delete')) {
+ echo " $v_link_label_delete\n";
}
echo " | \n";
echo "\n";
@@ -203,8 +203,8 @@ if (strlen($_GET["a"]) > 0) {
echo " | \n";
echo " $paging_controls | \n";
echo " \n";
- if (permission_exists('modules_add')) {
- echo " $v_link_label_add\n";
+ if (permission_exists('module_add')) {
+ echo " $v_link_label_add\n";
}
echo " | \n";
echo " \n";
diff --git a/app/modules/modules_delete.php b/app/modules/modules_delete.php
index 21e664a2ee..a31a3ed385 100644
--- a/app/modules/modules_delete.php
+++ b/app/modules/modules_delete.php
@@ -26,7 +26,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('modules_delete')) {
+if (permission_exists('module_delete')) {
//access granted
}
else {
diff --git a/app/modules/modules_edit.php b/app/modules/modules_edit.php
index 3994e8af68..6f1ba7e983 100644
--- a/app/modules/modules_edit.php
+++ b/app/modules/modules_edit.php
@@ -26,7 +26,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('modules_add') || permission_exists('modules_edit')) {
+if (permission_exists('module_add') || permission_exists('module_edit')) {
//access granted
}
else {
@@ -88,7 +88,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//add or update the database
if ($_POST["persistformvar"] != "true") {
- if ($action == "add" && permission_exists('modules_add')) {
+ if ($action == "add" && permission_exists('module_add')) {
$module_uuid = uuid();
$sql = "insert into v_modules ";
$sql .= "(";
@@ -124,7 +124,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
return;
} //if ($action == "add")
- if ($action == "update" && permission_exists('modules_edit')) {
+ if ($action == "update" && permission_exists('module_edit')) {
$sql = "update v_modules set ";
$sql .= "module_label = '$module_label', ";
$sql .= "module_name = '$module_name', ";
diff --git a/app/recordings/app_config.php b/app/recordings/app_config.php
index 6dd72e47f0..72b24c45a8 100644
--- a/app/recordings/app_config.php
+++ b/app/recordings/app_config.php
@@ -37,32 +37,32 @@
$apps[$x]['menu'][0]['groups'][] = 'superadmin';
//permission details
- $apps[$x]['permissions'][0]['name'] = 'recordings_view';
+ $apps[$x]['permissions'][0]['name'] = 'recording_view';
$apps[$x]['permissions'][0]['groups'][] = 'admin';
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][1]['name'] = 'recordings_add';
+ $apps[$x]['permissions'][1]['name'] = 'recording_add';
$apps[$x]['permissions'][1]['groups'][] = 'admin';
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][2]['name'] = 'recordings_edit';
+ $apps[$x]['permissions'][2]['name'] = 'recording_edit';
$apps[$x]['permissions'][2]['groups'][] = 'admin';
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][3]['name'] = 'recordings_delete';
+ $apps[$x]['permissions'][3]['name'] = 'recording_delete';
$apps[$x]['permissions'][3]['groups'][] = 'admin';
$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][4]['name'] = 'recordings_upload';
+ $apps[$x]['permissions'][4]['name'] = 'recording_upload';
$apps[$x]['permissions'][4]['groups'][] = 'admin';
$apps[$x]['permissions'][4]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][5]['name'] = 'recordings_play';
+ $apps[$x]['permissions'][5]['name'] = 'recording_play';
$apps[$x]['permissions'][5]['groups'][] = 'user';
$apps[$x]['permissions'][5]['groups'][] = 'admin';
$apps[$x]['permissions'][5]['groups'][] = 'superadmin';
- $apps[$x]['permissions'][6]['name'] = 'recordings_download';
+ $apps[$x]['permissions'][6]['name'] = 'recording_download';
$apps[$x]['permissions'][6]['groups'][] = 'user';
$apps[$x]['permissions'][6]['groups'][] = 'admin';
$apps[$x]['permissions'][6]['groups'][] = 'superadmin';
diff --git a/app/recordings/recordings.php b/app/recordings/recordings.php
index 5ad679794d..a594f01469 100644
--- a/app/recordings/recordings.php
+++ b/app/recordings/recordings.php
@@ -27,7 +27,7 @@
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
-if (permission_exists('recordings_view')) {
+if (permission_exists('recording_view')) {
//access granted
}
else {
@@ -50,7 +50,7 @@ require_once "resources/paging.php";
$order = $_GET["order"];
//download the recordings
- if ($_GET['a'] == "download" && permission_exists('recordings_download')) {
+ if ($_GET['a'] == "download" && permission_exists('recording_download')) {
session_cache_limiter('public');
if ($_GET['type'] = "rec") {
if (file_exists($_SESSION['switch']['recordings']['dir'].'/'.base64_decode($_GET['filename']))) {
@@ -82,8 +82,8 @@ require_once "resources/paging.php";
}
//upload the recording
- if (permission_exists('recordings_upload')) {
- if (($_POST['submit'] == "Upload") && is_uploaded_file($_FILES['ulfile']['tmp_name']) && permission_exists('recordings_upload')) {
+ if (permission_exists('recording_upload')) {
+ if (($_POST['submit'] == "Upload") && is_uploaded_file($_FILES['ulfile']['tmp_name']) && permission_exists('recording_upload')) {
if ($_POST['type'] == 'rec') {
move_uploaded_file($_FILES['ulfile']['tmp_name'], $_SESSION['switch']['recordings']['dir'].'/'.$_FILES['ulfile']['name']);
$savemsg = $text['message-uploaded']." ".$_SESSION['switch']['recordings']['dir']."/". htmlentities($_FILES['ulfile']['name']);
@@ -177,7 +177,7 @@ require_once "resources/paging.php";
echo $_SESSION['switch']['recordings']['dir'];
}
echo " \n";
- if (permission_exists('recordings_upload')) {
+ if (permission_exists('recording_upload')) {
echo "