I have reviewed the domain_roles 2.0 dev branch code, I see you alter the domain_editor table by adding a new column named "domain_id".

I suggest you create a new table with N-N relationship for filter domain roles and paginate domain users. And don't impact the domain_access module table structure and upgrade in future.

I would like to join 2.x-dev.

Please contact me.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lixiphp’s picture

CREATE TABLE `domain_roles` (
`domain_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Domain numeric id.',
`uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Primary Key: users.uid for user.',
`rid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Primary Key: role.rid for role.',
PRIMARY KEY (`uid`,`rid`,`domain_id`),
KEY `uid` (`uid`),
KEY `rid` (`rid`),
KEY `domain_id` (`domain_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Maps domains users to roles.'

This is I created db schema table for domain_roles module.

mlivan’s picture

Assigned: Unassigned » mlivan
FileSize
7.9 KB

Here is the patch for the module.
With this patch module full working...
Module add "Domain Role" in user/edit page and then you will set Role only for the current domain.
Domain role have low level permission then Role permissions.
I all testing on my machine and working like a charm.
Be great if all good to create new stable version of module.
Thanks.

mlivan’s picture

FileSize
6.89 KB

i little change the patch file...

mlivan’s picture

FileSize
8 KB

Latest version of patch.
I add in /admin/people column DOMAIN ROLES.
it's very useful.

mlivan’s picture

FileSize
8 KB

I'm new and never before make a patch, sorry...

mlivan’s picture

FileSize
8 KB

  • f046df5 committed on 7.x-2.x
    Issue #2177395 by mlivan: Reorganize complete code and make fuctional...
mlivan’s picture

Status: Active » Fixed

Module working, I testing with 7.x.2.x-dev code...

Status: Fixed » Closed (fixed)

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