/** * checks if the role of the current user is in the given array * @return mixed */ public static function currentUserIsEither($roles = array()) { return in_array(Helper::currentUserRoleId(), $roles); }
/** * checks if the role of the current user is in the given array * @return mixed */ public static function currentUserIsEither($roles = array()) { return in_array(Helper::currentUserRoleId(), $roles); }