@classmethod
def has_access(cls, store, user, branch):
    """Checks if the given user has access to the given branch
        """
    return store.find(cls, user=user, branch=branch).one() is not None
