You are here

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

Check whether the user has access to the given fragment.

Overrides AuthcacheP13nFragmentAccessInterface::check

File

modules/authcache_poll/includes/AuthcachePollFragment.inc, line 34
Defines personalized fragment for polls.

Class

AuthcachePollFragment
Personalized fragment handler for polls.

Code

public function check($account, $key, $subject, $context) {
  return user_access('access content', $account);
}