mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
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('services_view')) {
|
||||
if (permission_exists('service_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -141,7 +141,7 @@ if (strlen($_GET["a"]) > 0) {
|
||||
echo "<th>Status</th>\n";
|
||||
echo "<th>Action</th>\n";
|
||||
echo "<td align='right' width='42'>\n";
|
||||
if (permission_exists('services_add')) {
|
||||
if (permission_exists('service_add')) {
|
||||
echo " <a href='service_edit.php' alt='add'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo "</td>\n";
|
||||
@@ -173,10 +173,10 @@ if (strlen($_GET["a"]) > 0) {
|
||||
}
|
||||
echo "</td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
if (permission_exists('services_edit')) {
|
||||
if (permission_exists('service_edit')) {
|
||||
echo " <a href='service_edit.php?id=".$row[service_uuid]."' alt='edit'>$v_link_label_edit</a>\n";
|
||||
}
|
||||
if (permission_exists('services_delete')) {
|
||||
if (permission_exists('service_delete')) {
|
||||
echo " <a href='service_delete.php?id=".$row[service_uuid]."' alt='delete' onclick=\"return confirm('Do you really want to delete this?')\">$v_link_label_delete</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
@@ -193,7 +193,7 @@ if (strlen($_GET["a"]) > 0) {
|
||||
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('services_add')) {
|
||||
if (permission_exists('service_add')) {
|
||||
echo " <a href='service_edit.php' alt='add'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
|
||||
Reference in New Issue
Block a user