Audited the permissions names. Permissions names are to be non plural.
This commit is contained in:
@@ -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 "<td align='right' width='42'>\n";
|
||||
if (permission_exists('call_center_tiers_add')) {
|
||||
if (permission_exists('call_center_tier_add')) {
|
||||
echo " <a href='call_center_tier_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo "</td>\n";
|
||||
@@ -136,10 +136,10 @@ require_once "resources/paging.php";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row[tier_level]." </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row[tier_position]." </td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
if (permission_exists('call_center_tiers_edit')) {
|
||||
if (permission_exists('call_center_tier_edit')) {
|
||||
echo " <a href='call_center_tier_edit.php?id=".$row[call_center_tier_uuid]."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
|
||||
}
|
||||
if (permission_exists('call_center_tiers_delete')) {
|
||||
if (permission_exists('call_center_tier_delete')) {
|
||||
echo " <a href='call_center_tier_delete.php?id=".$row[call_center_tier_uuid]."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
@@ -157,7 +157,7 @@ require_once "resources/paging.php";
|
||||
echo " <td width='33.3%' nowrap> </td>\n";
|
||||
echo " <td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
|
||||
echo " <td width='33.3%' align='right'>\n";
|
||||
if (permission_exists('call_center_tiers_add')) {
|
||||
if (permission_exists('call_center_tier_add')) {
|
||||
echo " <a href='call_center_tier_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
|
||||
Reference in New Issue
Block a user