Audited the permissions names. Permissions names are to be non plural.

This commit is contained in:
Mark Crane
2013-09-21 21:45:35 +00:00
parent bf52a675a0
commit 041a375b62
93 changed files with 266 additions and 266 deletions

View File

@@ -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>&nbsp;</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";