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
API reference based on ProcessWire core version 3.0.244
“I just love the easy and intuitive ProcessWire API. ProcessWire rocks!” —Jens Martsch, Web developer