From b5795043d62f825498229c99ed1be91007d935a6 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 5 Jul 2014 20:03:30 +0000 Subject: [PATCH] Change the notifications_edit permission to notification_edit --- app/notifications/app_config.php | 8 +++++--- app/notifications/notifications_edit.php | 12 ++++++------ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/app/notifications/app_config.php b/app/notifications/app_config.php index 4dd3b98b34..95705da05d 100644 --- a/app/notifications/app_config.php +++ b/app/notifications/app_config.php @@ -35,9 +35,11 @@ $apps[$x]['menu'][0]['groups'][] = "superadmin"; //permission details - $apps[$x]['permissions'][0]['name'] = "notifications_edit"; - $apps[$x]['permissions'][0]['menu']['uuid'] = "f8d65f91-0f4a-405a-b5ac-24cb3c4f10ba"; - $apps[$x]['permissions'][0]['groups'][] = "superadmin"; + $y = 0; + $apps[$x]['permissions'][$y]['name'] = "notification_edit"; + $apps[$x]['permissions'][$y]['menu']['uuid'] = "f8d65f91-0f4a-405a-b5ac-24cb3c4f10ba"; + $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; + $y++; //schema details $y = 0; //table array index diff --git a/app/notifications/notifications_edit.php b/app/notifications/notifications_edit.php index 43c83b6e67..75d4c15786 100644 --- a/app/notifications/notifications_edit.php +++ b/app/notifications/notifications_edit.php @@ -27,7 +27,7 @@ Mark J Crane require_once "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; -if (permission_exists("notifications_edit")) { +if (permission_exists("notification_edit")) { //access granted } else { @@ -103,7 +103,7 @@ else { $_SESSION["message"] = $text['message-update']; } - header("Location: notifications_edit.php"); + header("Location: notification_edit.php"); return; } @@ -115,7 +115,7 @@ else { ($project_notification_method == 'text' && $project_notification_recipient == '') )) { $_SESSION["message"] = $text['message-invalid_recipient']; - header("Location: notifications_edit.php"); + header("Location: notification_edit.php"); return; } @@ -210,7 +210,7 @@ else { // redirect $_SESSION["message"] = $text['message-update']; - header("Location: notifications_edit.php"); + header("Location: notification_edit.php"); return; } @@ -268,7 +268,7 @@ $page["title"] = $text['title-notifications']; echo " \n"; echo " ".$text['header-notifications']."

\n"; echo " "; - if (permission_exists('notifications_edit')) { + if (permission_exists('notification_edit')) { echo " \n"; } echo "

"; @@ -378,7 +378,7 @@ $page["title"] = $text['title-notifications']; echo " \n"; echo " \n"; - if (permission_exists('notifications_edit')) { + if (permission_exists('notification_edit')) { echo " \n"; echo " \n"; echo " \n";