def METHOD_NAME(self, couch_user, case_domain=None):
    if case_domain and self.current_domain == case_domain:
        # always allow access data in the current domain
        return
    checker = RegistryPermissionCheck(self.current_domain, couch_user)
    if not checker.can_view_registry_data(self.registry_slug):
        raise RegistryAccessException("User not permitted to access registry data")