I've finally started to rethink the database structure. The goal I'm trying to reach: only use User objects to manage permissions and accesses to the webui and associate other objects to them if needed (like mailboxes).
see #105
I think the refactoring is over :-) I need to add specifec events that will allow plugins to define their own roles inside the hierarchy.
Otherwise, the graphical part needs some improvment, actually it's not really pretty :p
Work in progress. I've moved permissions management to the new dedicated page. Adding permissions is working but deleting ones. I must also filter the list of users available when creating a super admin because the default admin appears inside :p