This is a spin-off from #487842: Errror message when trying to create new content -- warning: Invalid argument supplied for foreach()....
We need a mechanism to batch assign users to and from domains.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 490846-user-management.patch | 11.17 KB | agentrickard |
| #3 | 490846-admin.patch | 6.11 KB | agentrickard |
| #2 | 490846-user-enable.patch | 1.68 KB | agentrickard |
Comments
Comment #1
agentrickardQuestion #1 is this:
When enabling the module, should we batch assign all users to the default domain?
There is a behavior inconsistency, in that users registered _after_ installation are auto-assigned to a domain, so should we not do so for old accounts on module enable?
[Note that we did not do this in D5 because the data was serialized onto the $user object, which would be difficult to do in hook_enable().]
Comment #2
agentrickardHere is a patch to auto-add users to the primary domain. Note that we deliberately exclude user 0, to avoid accidental security issues if the anon role is given the 'edit domain nodes' permission.
Comment #3
agentrickardPatch, part two.
I will clean up the first one and then post a merged patch.
Comment #4
agentrickardHere is the final patch.
Committed to HEAD.
Comment #5
agentrickard