function notifications_access_subscribe in Notifications 6
Same name and namespace in other branches
- 6.4 notifications.module \notifications_access_subscribe()
- 6.2 notifications.module \notifications_access_subscribe()
- 6.3 notifications.module \notifications_access_subscribe()
- 7 notifications.module \notifications_access_subscribe()
Menu access callback for subscribe links
More access checking depending on subscription type will be done at the destination page
1 string reference to 'notifications_access_subscribe'
- notifications_menu in ./
notifications.module - Implementation of hook_menu().
File
- ./
notifications.module, line 219 - Notifications module
Code
function notifications_access_subscribe($account) {
global $user;
if (user_access('administer notifications') || user_access('manage all subscriptions')) {
return TRUE;
}
return $account && $account->uid && $user->uid == $account->uid && user_access('maintain own subscriptions');
}