Closed (fixed)
Project:
Domain
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Sep 2009 at 11:51 UTC
Updated:
30 Jan 2010 at 18:34 UTC
I've got node 181 in node_access as follow:
181, 0, 'domain_id', 1, 1, 1
181, 0, 'domain_site', 1, 0, 0
181, 5, 'view_own_role', 1, 0, 0
181, 82, 'view_own_owner', 1, 0, 0
It shouldn't be visible for all users, but it's.
Comments
Comment #1
kenorb commentedRelated issue: #400268: published content displays on all sites
Comment #2
agentrickardYes, it should. The second row means: "Show this node on all affiliate sites."
Use Devel Node Access module, and it will explain what these rows mean.
Using multiple node access modules (which you are apparently doing) uses an OR based permission system. So if either system grants access, the user gets access. You may need a custom integration module to make the two modules work together. You can use hook_domaingrants() and hook_domainrecords() to modify how DA behaves when the other module is present.
Comment #3
kenorb commentedWhy it can't set default permission that are already set?
Like View Own module doing that in _get_default_permissions() ?
Why I should use hook_domaingrants and hook_domainrecords if I need my default permission which I already set?
Comment #4
agentrickardWhat?
I don't even understand your question. The two permission systems are entirely different and _stepping on each other_ because Node Access applies OR logic to the grants.
You would use hook_domaingrants() to _remove_ the 'domain_site' grant and possbly the 'domain_id' grant so that View Own can have the only say in content access.
Comment #5
kenorb commentedThanks, I'll try to remove this domain_site grant.
Comment #6
kenorb commentedI can't find the format of hook_domaingrants().
Nothing in documentation, README and no examples.
Any help?
Comment #7
agentrickardLook again. API.php.
Comment #8
agentrickard