You are here

public function RestfulRateLimitGlobal::isRequestedEvent in RESTful 7

Only track the global limit for the current user if the variable is on.

Overrides RestfulRateLimitInterface::isRequestedEvent

File

plugins/rate_limit/RestfulRateLimitGlobal.class.php, line 46
Contains RestfulRateLimitGlobal

Class

RestfulRateLimitGlobal
@file Contains RestfulRateLimitGlobal

Code

public function isRequestedEvent(array $request = array()) {
  return $this
    ->getLimit() > 0;
}