$userisSuperuser()

Does this user have the superuser role?

Same as calling $user->roles->has('name=superuser'); but potentially faster.

Usage

$bool = $user->isSuperuser();

Return value

bool


$user methods and properties

API reference based on ProcessWire core version 3.0.252