Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
#6 | make_to_all_working-2177395-6.patch | 8 KB | mlivan |
Comments
Comment #1
lixiphp CreditAttribution: lixiphp commentedCREATE 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.
Comment #2
mlivan CreditAttribution: mlivan commentedHere 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.
Comment #3
mlivan CreditAttribution: mlivan commentedi little change the patch file...
Comment #4
mlivan CreditAttribution: mlivan commentedLatest version of patch.
I add in /admin/people column DOMAIN ROLES.
it's very useful.
Comment #5
mlivan CreditAttribution: mlivan commentedI'm new and never before make a patch, sorry...
Comment #6
mlivan CreditAttribution: mlivan commentedComment #8
mlivan CreditAttribution: mlivan commentedModule working, I testing with 7.x.2.x-dev code...