function Messaging_Send_Method::user_access in Messaging 7
Same name and namespace in other branches
- 6.4 includes/messaging_method.class.inc \Messaging_Send_Method::user_access()
Check user access to this method
File
- ./
messaging.method.inc, line 262 - 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
->method_info('access')) {
return user_access($permission, $account);
}
else {
return TRUE;
}
}