@@ -0,0 +1,560 @@
+try:%0A    from ckan.common import config%0Aexcept ImportError:%0A    from pylons import config%0A%0ACONFIG_ALLOWED_ORG = 'ckanext.syndication.predicate.allowed_organization'%0ACONFIG_DENIED_ORG = 'ckanext.syndication.predicate.denied_organization'%0A%0A%0Adef organization_owns_dataset(pkg, conf_name=CONFIG_ALLOWED_ORG):%0A    orgs = pkg.get_groups('organization')%0A    if not orgs:%0A        return False%0A    title = orgs%5B0%5D.title%0A    return title == config.get(conf_name)%0A%0A%0Adef organization_not_owns_dataset(pkg):%0A    return not organization_owns_dataset(pkg, CONFIG_DENIED_ORG)%0A

add owner org predicates