function notifications_access_unsubscribe in Notifications 7
Menu access callback for unsubscribe links.
1 string reference to 'notifications_access_unsubscribe'
- notifications_menu in ./
notifications.module - Implementation of hook_menu().
File
- ./
notifications.module, line 273 - Notifications module
Code
function notifications_access_unsubscribe($subscription = NULL, $account = NULL) {
if (notifications_check_signature()) {
return TRUE;
// Signed link
}
elseif ($subscription && $GLOBALS['user']->uid && $subscription->uid == $GLOBALS['user']->uid || $account && $GLOBALS['user']->uid == $account->uid) {
return user_access('maintain own subscriptions');
}
elseif (!$subscription && !$account) {
return user_access('maintain own subscriptions');
}
}