hasRoles() public method

Checks if the user has either one or more, or all of an array of roles
public hasRoles ( $roles, boolean $needsAll = false ) : boolean
$roles
$needsAll boolean
return boolean
 /**
  * Checks if the user has either one or more, or all of an array of roles
  *
  * @param $roles
  * @param bool $needsAll
  * @return bool 
  * @static 
  */
 public static function hasRoles($roles, $needsAll = false)
 {
     return \App\Services\Access\Access::hasRoles($roles, $needsAll);
 }