Domain roles 2
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
Purpose
This sandbox is a fork of Domain roles module, in a hope to provide a working and full-featured version. The goal is to be able to grant specific roles (such as redactor, moderator) to users, only on designated domains (based on Domain Access module).
I forked so that development is not slowed down by any maintenance take-over process. When initial rewrite phase is over, I will suggest my code to current maintainer.
State
Right now, the module lacks many things, but foundation works.
The module stores a list of roles in a new column (roles) in Domain module's table domain_editors (which links a user uid to a domain domain_id). Two functions, domain_roles_revoke_roles() and domain_roles_grant_roles() allow to grant and revoke a list of roles to a user on a specific domain. When the user logs in a specific domain, he will automatically be given any role he should have on this domain, and will consequently be granted the associated permissions.
To do list
The module mainly needs two things:
- an interface to allow administrators to grant roles to users on specific domain (I'm thinking of an addition to user edit page, which will allow to grant roles on current domain)
- an upgrade path from 1.x (but is it really useful? has anybody successfully used this module's 1.x branch?)
About
This module is developed by Alethia INC.