Previous Page
isAll()

Solar_Role_Adapter
isAny()

Next Page
load()

isAny()

public bool isAny ( string|array $roles default array () )

Check to see if a user is in any of the listed roles.

Parameters

  • (string|array) $roles: The role(s) to check.

Returns

  • (bool) True if the user is in any of the listed roles (a logical 'or'), false if not.

Description

Check to see if a user is in any of the listed roles.