You are here

function simplenews_newsletter_access in Simplenews 6.2

Same name and namespace in other branches
  1. 6 simplenews.module \simplenews_newsletter_access()
  2. 7.2 simplenews.module \simplenews_newsletter_access()

Menu item access callback.

Access for both newsletter and subscriber admins.

1 string reference to 'simplenews_newsletter_access'
simplenews_menu in ./simplenews.module
Implementation of hook_menu().

File

./simplenews.module, line 296
Simplenews node handling, sent email, newsletter block and general hooks

Code

function simplenews_newsletter_access() {
  return user_access('administer newsletters') || user_access('administer simplenews subscriptions');
}