Change the notifications_edit permission to notification_edit
This commit is contained in:
parent
f259af93ce
commit
b5795043d6
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ Mark J Crane <markjcrane@fusionpbx.com>
|
|||
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 " <tr>\n";
|
||||
echo " <td align='left' nowrap='nowrap'><b>".$text['header-notifications']."</b><br><br></td>\n";
|
||||
echo " <td align='right'>";
|
||||
if (permission_exists('notifications_edit')) {
|
||||
if (permission_exists('notification_edit')) {
|
||||
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
|
||||
}
|
||||
echo " <br><br>";
|
||||
|
|
@ -378,7 +378,7 @@ $page["title"] = $text['title-notifications'];
|
|||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
if (permission_exists('notifications_edit')) {
|
||||
if (permission_exists('notification_edit')) {
|
||||
echo " <tr>\n";
|
||||
echo " <td colspan='2' align='right'>\n";
|
||||
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue