You are here

function notifications_content_access in Notifications 7

Same name and namespace in other branches
  1. 6.4 notifications_content/notifications_content.module \notifications_content_access()
  2. 6 notifications_content/notifications_content.module \notifications_content_access()
  3. 6.2 notifications_content/notifications_content.module \notifications_content_access()
  4. 6.3 notifications_content/notifications_content.module \notifications_content_access()

Menu access callback

File

notifications_content/notifications_content.module, line 67
Subscriptions to content events

Code

function notifications_content_access($account, $perm) {
  global $user;
  return $account->uid && $account->uid == $user->uid && user_access($perm) || user_access('administer notifications') && user_access($perm, $account);
}