You are here

public function AuthcacheP13nTestEchoSettingAccess::check in Authenticated User Page Caching (Authcache) 7.2

Check whether the user has access to the given setting.

Parameters

object $account: The user account to check.

any $params: Params set by the client.

array $context: Additional run-time per-request context (key-value pairs).

Return value

bool Return TRUE when the user has access, FALSE otherwise.

Overrides AuthcacheP13nSettingAccessInterface::check

File

modules/authcache_p13n/tests/authcache_p13n.stub.inc, line 525
Stub classes for testing.

Class

AuthcacheP13nTestEchoSettingAccess
Stub class for setting access checker

Code

public function check($account, $params, $context) {
  return !isset($params['account']) || $params['account'] == $account;
}