Notifications: Change permission to use group instead.
This commit is contained in:
@@ -27,7 +27,7 @@ Mark J Crane <markjcrane@fusionpbx.com>
|
|||||||
require_once "root.php";
|
require_once "root.php";
|
||||||
require_once "resources/require.php";
|
require_once "resources/require.php";
|
||||||
require_once "resources/check_auth.php";
|
require_once "resources/check_auth.php";
|
||||||
if (permission_exists("notification_edit")) {
|
if (if_group('superadmin')) {
|
||||||
//access granted
|
//access granted
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -292,9 +292,7 @@ $page["title"] = $text['title-notifications'];
|
|||||||
echo " <tr>\n";
|
echo " <tr>\n";
|
||||||
echo " <td align='left' nowrap='nowrap'><b>".$text['header-notifications']."</b><br><br></td>\n";
|
echo " <td align='left' nowrap='nowrap'><b>".$text['header-notifications']."</b><br><br></td>\n";
|
||||||
echo " <td align='right'>";
|
echo " <td align='right'>";
|
||||||
if (permission_exists('notification_edit')) {
|
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
|
||||||
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
|
|
||||||
}
|
|
||||||
echo " <br><br>";
|
echo " <br><br>";
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " </tr>\n";
|
echo " </tr>\n";
|
||||||
@@ -399,14 +397,11 @@ $page["title"] = $text['title-notifications'];
|
|||||||
echo $text['description-project_notification_recipient']."\n";
|
echo $text['description-project_notification_recipient']."\n";
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " </tr>\n";
|
echo " </tr>\n";
|
||||||
|
echo " <tr>\n";
|
||||||
if (permission_exists('notification_edit')) {
|
echo " <td colspan='2' align='right'>\n";
|
||||||
echo " <tr>\n";
|
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
|
||||||
echo " <td colspan='2' align='right'>\n";
|
echo " </td>\n";
|
||||||
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
|
echo " </tr>";
|
||||||
echo " </td>\n";
|
|
||||||
echo " </tr>";
|
|
||||||
}
|
|
||||||
|
|
||||||
echo "</table>\n";
|
echo "</table>\n";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user