You are here

public function HttpResponseHeadersRule::hasRoles in HTTP Response Headers 7

Checks roles has set.

Return value

bool TRUE if roles set, FALSE otherwise.

File

includes/http_response_headers.rule.inc, line 351
Class definitions for the HTTP response headers rule.

Class

HttpResponseHeadersRule
Defines HttpResponseHeadersRule

Code

public function hasRoles() {
  return !empty($this->roles);
}