You are here

public function WSClientServiceDescription::access in Web service client 7

Determines access to the web service.

File

./wsclient.inc, line 99
Web service client - include file.

Class

WSClientServiceDescription
Class representing web service descriptions.

Code

public function access($account = NULL) {
  if (method_exists($this
    ->endpoint(), 'access')) {
    return $this
      ->endpoint()
      ->access($account);
  }
  return user_access('interact with ' . $this->name, $account);
}