Skip to content

Kirby 4.1.2

$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