Skip to content

Kirby 4.5.0

$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