An extra field on users which associates them with clients in an autocomplete field, ie: so each user has one client, and each client has one or more users. There needs to be an admin permission to be able to change it

CommentFileSizeAuthor
hosting.nov_.17.xiong_.patch4.61 KBxiong

Comments

adrian’s picture

Status: Needs review » Needs work

This has some issues.

Firstly, there should be a user for every client, and a client for every user.
When a new client is created, a new user account should be created and a welcome mail sent to the user.
However, when importing hundreds of sites / clients, the welcome mails will time out the process(this also needs to happen in the update_N function.)

So we need a mail queue of some form.

Also, the update function is in the wrong format (doesn't return an array or use update_sql)

I'm thinking this patch is only going in after the 0.1 release.

adrian’s picture

Status: Needs work » Postponed

Till after 0.1

anarcat’s picture

Title: An extra field on users which associates them with clients in an autocoplete field » associates users with clients in an autocomplete field

cleanup title.

we need this. :)

anarcat’s picture

I should also add here that the relation between clients and users should be "qualified" There are different "types" of "users" that have access to the the "client". On the top of my head I can already think of those:

* tech
* billing
* owner

Those can be all the same person, but it's important to have different types of contact for the site so that we contact the right person for various issues (billing is very different from tech issues: the first will receive the bills, the second one maintenance announcements and the like).

I also think that users can have access to multiple clients too. So the relation is actually many to many, and typed. Note that this is also related to http://drupal.org/node/336068: that issue is an excellent example of use for the tech contact. The mail should be sent to the tech contact.

adrian’s picture

Status: Postponed » Fixed

The basic implimentation of this has been committed, including node_access, so nodes that you do not have a business seeing are hidden.

anarcat’s picture

Project: Hostmaster (Aegir) » Hosting

This is a hosting issue.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.