def in_group(self, username, group):
        if group in ('everyone', Everyone):
            return True
        elif username is None:
            return False
        elif group in ('authenticated', Authenticated):
            return True
        elif group == 'admin' and self.is_admin(username):
            return True
        else:
            return group in self.groups(username)
Find out if a user is in a group
dataset/ETHPy150Open mathcamp/pypicloud/pypicloud/access/base.py/IAccessBackend.in_group