You are here

public function Notifications_Event::user_access in Notifications 7

Same name and namespace in other branches
  1. 6.4 includes/notifications_event.class.inc \Notifications_Event::user_access()

Check user access to event's objects

Replaces notifications_event_user_access($event, $account);

Overrides Notifications_Entity::user_access

1 call to Notifications_Event::user_access()
Notifications_Event::send_list in ./notifications.event.inc
Send to subscriptors

File

./notifications.event.inc, line 345
Drupal Notifications Framework - Default class file

Class

Notifications_Event
Notifications Event class

Code

public function user_access($account, $op = 'view') {
  foreach ($this
    ->get_objects() as $object) {
    if (!$object
      ->user_access($account)) {
      return FALSE;
    }
  }
  return TRUE;
}