src/Security/Member.php
public function inGroups($groups, $strict = false)
    {
        if ($groups) {
            foreach ($groups as $group) {
                if ($this->inGroup($group, $strict)) {
                    return true;
                }
            }
        }

        return false;
    }
public function inGroups($groups, $strict = false)
    {
        if ($groups) {
            foreach ($groups as $group) {
                if ($this->inGroup($group, $strict)) {
                    return true;
                }
            }
        }

        return false;
    }
public function inGroups ( $ groups , $ strict = false ) { if ( $ groups ) { foreach ( $ groups as $ group ) { if ( $ this -> inGroup ( $ group , $ strict ) ) { return true ; } } } return false ; }
Check if the member is in one of the given groups.

@param array|SS_List $groups Collection of {@link Group} DataObjects to check
@param boolean $strict Only determine direct group membership if set to true (Default: false)
@return bool Returns TRUE if the member is in one of the given groups, otherwise FALSE.
Check if the member is in one of the given groups .