Checks if the requested user is an admin of any sites or has any admin roles.


  • Full name: if_user_has_sites
  • Defined in: cms/core/Shared/Helpers/db.php

Parameters

Parameter Type Description
$userId string ID of user to check.

Return Value

bool

Returns true if user has sites and false otherwise.