Template::hasRole()
Does this template have the given Role?
Usage
// basic usage
$bool = $template->hasRole($role);
// usage with all arguments
$bool = $template->hasRole($role, $type = 'view');
Template methods and properties
API reference based on ProcessWire core version 3.0.251