Closed (fixed)
Project:
Domain
Version:
6.x-2.1
Component:
- Domain User
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Dec 2009 at 08:43 UTC
Updated:
20 Jan 2010 at 22:20 UTC
Hi, I use DA for a multisite homepage - and it works great!! Thank you for this software.
Yesterday I started with the integration of a new component. "mass contact". Mass contact sents mails to user groups defined by roles.
Now I recognized, that using mass contact, mails are really sent to ALL users of a role - not limited by the DA settings.
Is there any way or hints, how to insert the DA rights to roles? I don't want to create 100dred of extra roles (each role for each domain).
Kind regards
Kai
Comments
Comment #1
vistree commentedHi,
I found out now, how recipients are build by mass contact. Now I have to extend the sql query with a domain access part. I need to know how to limit the result by the users which are member of the "current domain" - the domain, the sender is logged in.
Can anyone help me to find the correct tables?
Kind regards
Kai
Comment #2
agentrickardUsers are tracked as "members" of the domain that they registered from, unless this setting is overridden (either manually or through the User defaults settings tab).
You want the {domain_editor} table, which maps UID to DOMAIN_ID.
Comment #3
vistree commentedHi agentrickard,
yes, this is exactly the table I need ;-) Now I just need to know, how to get the ID of the current domain the user is looged in. Is there a token-value or php-value I can use?
Kind regards
Kai
Comment #4
agentrickardUsers are not 'logged in' to a domain. You can read the value of the current domain in the $_domain global variable.
See the README.txt, section 7, which explains all this, including the database schema.
Comment #5
vistree commentedThank you - I will check the readme.
Kind regards
Kai