You are here

function Messaging_Send_Method::user_access in Messaging 6.4

Same name and namespace in other branches
  1. 7 messaging.method.inc \Messaging_Send_Method::user_access()

Check user access to this method

File

includes/messaging_method.class.inc, line 239
Drupal Messaging Framework - Send_Method class file

Class

Messaging_Send_Method
Sending method, implements all specific method functionality

Code

function user_access($account) {
  if (!$account->uid && !$this->anonymous) {
    return FALSE;
  }
  if ($permission = $this
    ->get_info('access')) {
    return user_access($permission, $account);
  }
  else {
    return TRUE;
  }
}