Remove a Role to this template for view, edit, create, or add permission
// basic usage $template->removeRole($role); // usage with all arguments $template->removeRole($role, string $type = 'view');
|Role, int, string|
Role instance, id or name
Type of role being added, one of: view, edit, create, add. (default=view) You may also specify “all” to remove the role entirely from all possible usages in the template.
Object instance it was called from (method supports fluent interface).
Method can throw exceptions on error:
WireException- If given $role cannot be resolved
API reference based on ProcessWire core version 3.0.137