def METHOD_NAME(user: User) -> bool:
  """Return True if the user is allowed to create features."""
  if not user:
    return False
  if can_admin_site(user):
    return True
  # TODO(jrobbins): generalize this.
  if user.email().endswith(('@chromium.org', '@google.com')):
    return True
  query = AppUser.query(AppUser.email == user.email())
  found_user = query.get(keys_only=True)
  if found_user is not None:
    return True
  return False