Closed (fixed)
Project:
Domain
Version:
5.x-1.0beta7
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Dec 2007 at 12:13 UTC
Updated:
15 Dec 2007 at 23:19 UTC
I just imported 1700 user in domain access site splitted in 1 top domain and 12 subdomains.
The users can read general posts and nodes on all sites, but are allowed to read "reserved" nodes only on their subdomain.
I would like to check that I gave the right domain grants to the users.
Is there a way to list the users for that particular domain?
Comments
Comment #1
agentrickardI think you misunderstand how the access permissions work for Domain Access.
Individual uses do not have specific domain access grants. Each user has the same grants at all times. Those grants are:
-- View content assigned to 'all affiliates'
-- View content assigned to the currently active subdomain
The user accounts are tagged with subdomains only for the purpose of creating, editing, and deleting content.
You would need a separate module to change this behavior, but it is possible.
Comment #2
agentrickardThe module in question, by the way, would be very small.
You need to implement hook_domaingrants() to alter the user's grants. Something like the following:
That hasn't been tested, but I think that is about all you would need.
http://therickards.com/api/function/hook_domaingrants/Domain
Comment #3
agentrickardI have committed a Domain Strict module to HEAD. It enforces the behavior you describe.
It makes a nice test case for the API. Thanks.