Comments

agentrickard’s picture

Question #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().]

agentrickard’s picture

Status: Active » Needs review
StatusFileSize
new1.68 KB

Here 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.

agentrickard’s picture

StatusFileSize
new6.11 KB

Patch, part two.

I will clean up the first one and then post a merged patch.

agentrickard’s picture

Status: Needs review » Patch (to be ported)
StatusFileSize
new11.17 KB

Here is the final patch.

Committed to HEAD.

agentrickard’s picture

Status: Patch (to be ported) » Closed (fixed)