From dd6df4bef4547de38f31ec8d99837628f292cc0b Mon Sep 17 00:00:00 2001
From: John Ennew <johne@deeson.co.uk>
Date: Fri, 31 Aug 2012 14:38:33 +0100
Subject: [PATCH] Issue #1765602 by ceng: Added new permission send push
 notifications

---
 push_notifications.module |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/push_notifications.module b/push_notifications.module
index 8cb94c5..7e9d79d 100644
--- a/push_notifications.module
+++ b/push_notifications.module
@@ -75,7 +75,7 @@ function push_notifications_menu() {
   $items['admin/config/services/push_notifications'] = array(
     'type' => MENU_NORMAL_ITEM,
     'title' => 'Push Notifications',
-    'access arguments' => array('administer site configuration'),
+    'access arguments' => array('send push notifications'),
     'page callback' => 'drupal_get_form',
     'page arguments' => array('push_notifications_admin_overview_form'),
     'description' => 'Push Notifications Settings.',
@@ -87,7 +87,7 @@ function push_notifications_menu() {
     'type' => MENU_DEFAULT_LOCAL_TASK,
     'title' => 'Overview',
     'weight' => -50,
-    'access arguments' => array('administer site configuration'),
+    'access arguments' => array('send push notifications'),
     'page callback' => 'drupal_get_form',
     'page arguments' => array('push_notifications_admin_overview_form'),
     'description' => 'Push Notifications Settings.',
@@ -109,7 +109,7 @@ function push_notifications_menu() {
   $items['admin/config/services/push_notifications/message'] = array(
     'type' => MENU_LOCAL_TASK,
     'title' => 'Send Push',
-    'access arguments' => array('administer site configuration'),
+    'access arguments' => array('send push notifications'),
     'page callback' => 'drupal_get_form',
     'page arguments' => array('push_notifications_mass_push_form'),
     'description' => 'Send a Push Notification',
@@ -146,6 +146,10 @@ function push_notifications_permission() {
       'title' => t('Remove Device Token'),
       'description' => t('Allows users to remove a device token.'),
     ),
+    'send push notifications' => array(
+      'title' => t('Send push notifications'),
+      'description' => t('Allow users to send a push notification to devices'),
+    ),
   );
 }
 
-- 
1.7.7

