From 2be48d543e5d235167548cc049feb778cc94f2dd Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Wed, 9 Jul 2014 20:02:06 +0000 Subject: [PATCH] Notifications: Change permission to use group instead. --- app/notifications/notification_edit.php | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/app/notifications/notification_edit.php b/app/notifications/notification_edit.php index 580748de21..4ddc961933 100644 --- a/app/notifications/notification_edit.php +++ b/app/notifications/notification_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("notification_edit")) { +if (if_group('superadmin')) { //access granted } else { @@ -292,9 +292,7 @@ $page["title"] = $text['title-notifications']; echo " \n"; echo " ".$text['header-notifications']."

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

"; echo " \n"; echo " \n"; @@ -399,14 +397,11 @@ $page["title"] = $text['title-notifications']; echo $text['description-project_notification_recipient']."\n"; echo " \n"; echo " \n"; - - if (permission_exists('notification_edit')) { - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " "; - } + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " "; echo "\n";