You are here

public function Notifications_Subscription::object_access in Notifications 7

Check access to all the subscription objects

1 call to Notifications_Subscription::object_access()
Notifications_Subscription::user_access in ./notifications.subscription.inc
Check user access to this subscription

File

./notifications.subscription.inc, line 913
Drupal Notifications Framework - Default class file

Class

Notifications_Subscription
Common base for subscription type and subscription instance

Code

public function object_access($account) {
  foreach ($this
    ->get_objects(TRUE) as $object) {
    if (!$object
      ->user_access($account)) {
      return FALSE;
    }
  }
  return TRUE;
}