function notifications_content_access in Notifications 6
Same name and namespace in other branches
- 6.4 notifications_content/notifications_content.module \notifications_content_access()
- 6.2 notifications_content/notifications_content.module \notifications_content_access()
- 6.3 notifications_content/notifications_content.module \notifications_content_access()
- 7 notifications_content/notifications_content.module \notifications_content_access()
Menu access callback
File
- notifications_content/
notifications_content.module, line 61 - 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);
}