I can't create subgroups in the 8.x-1.0 branch of the Group module.
Is this feature on the roadmap?
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | ggroup.zip | 1.83 KB | matslats |
I can't create subgroups in the 8.x-1.0 branch of the Group module.
Is this feature on the roadmap?
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | ggroup.zip | 1.83 KB | matslats |
Comments
Comment #1
Anonymous (not verified) commentedspoetnik created an issue. See original summary.
Comment #2
kristiaanvandeneyndeIt indirectly is on the roadmap you can find here #2693167: [meta] D8 release roadmap, more specifically, check #2693209: API: Allow modules to change the roles you have during permission checks.
Once we land that one, we have everything we need to be able to create a subgroup module. Currently the focus lies on that roadmap, though.
Comment #3
pwolanin commentedLooks like it's possible to work on this now - is there any more detail on preferred implementation?
Comment #4
kristiaanvandeneyndeUhm yeah :)
That would be a good start!
Comment #5
pwolanin commentedSo, it seems like one of hard (and most important) parts of this is the recursive inheritance of roles. From what I understand there are also very few roles that exist across all groups? Should this add the ability to define additional roles that exist in all groups and only inherit those?
Comment #6
kristiaanvandeneyndeIt shouldn't. Every group type has its own unique set of roles. Some may seem the same (such as anon/outsider/member), but they are in fact unique under the hood.
So in order to sync roles, you need to map them and then use hook_group_user_roles_alter() to apply said map.
Comment #7
pwolanin commented@kristiaanvandeneynde that doesn't sound very user friendly to have to code such a mapping?
It seems like the mapping should at least happen at the level of the relationship between the two groups?
Comment #8
kristiaanvandeneyndeYes it should, but someone needs to code it :)
The idea is that the plugin has the code to figure out what the user configured in the UI, then applies that logic in
hook_group_user_roles_alter()Comment #9
matslats commentedThe attached is a ggroup module which contains a basic GroupContentEnabler plugin.
Comment #10
kristiaanvandeneyndeClosing in favor of #2736233: Port Subgroup (ggroup) to the D8 version, adding credit for matslats.