public function inGroup(GroupInterface $group)
	{
		foreach ($this->getGroups() as $_group)
		{
			if ($_group->getId() == $group->getId())
			{
				return true;
			}
		}

		return false;
	}
public function inGroup(GroupInterface $group)
	{
		foreach ($this->getGroups() as $_group)
		{
			if ($_group->getId() == $group->getId())
			{
				return true;
			}
		}

		return false;
	}
public function inGroup ( GroupInterface $ group ) { foreach ( $ this -> getGroups ( ) as $ _group ) { if ( $ _group -> getId ( ) == $ group -> getId ( ) ) { return true ; } } return false ; }
See if the user is in the given group.

@param \Cartalyst\Sentry\Groups\GroupInterface  $group
@return bool
See if the user is in the given group .