Role::removePermission()
Remove the given permission string, id or object.
This is the same as $role->permissions->remove($permission) except this one will accept ID or name.
Usage
$bool = $role->removePermission($permission);Arguments
| Name | Type(s) | Description |
|---|---|---|
$permission | string int Permission | Permission object, name or id. |
Return value
boolfalse if permission not recognized, true otherwise
API reference based on ProcessWire core version 3.0.252