Filter pages section by current user

The adding the method to a page model instead will be fine. The filter can be shortened a bit using an arrow function

public function getUserPages(string $fieldName)
{
	return $this->children()->filter(fn ($child) => $child->{$fieldName}()?->toUser()?->is(kirby()->user()));
}

This method requires a fieldname as input, but you remove the parameter and hard-code a field name instead.