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

NameType(s)Description
$permissionstring int Permission

Permission object, name or id.

Return value

bool

false if permission not recognized, true otherwise


Role methods and properties

API reference based on ProcessWire core version 3.0.251