Skip to content

Kirby 4.4.1

$user->isLastAdmin()

Checks if the user is the last one with the admin role

$user->isLastAdmin(): bool

Return type

bool

Parent class

Kirby\Cms\User