- Issue created by @Katy Jockelson
- Status changed to Closed: works as designed
over 1 year ago 9:23pm 23 March 2023 - πΊπΈUnited States agentrickard Georgia (US)
We discussed this in a long Slack thread.
Yes. It is.
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Can the summary of that be posted here for anyone finding this via search engines
- πΊπΈUnited States Katy Jockelson
We discussed edit access at length - and thank you again for that.
The use-case I explained goes out the window if users can't create nodes that they then, as the author, get automatically assigned to the same section as the node.
Is there any way to separate edit/add access? Or an alternative solution anyone can think of? - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
So the issue here is
workbench_access_entity_create_access
returns false for a user with no sections.One approach could be to have a generic section, and auto-add that to a user in a hook_user_insert.
At least they'd have one section then.
Alternatively something like hook_module_implements_alter could wipe workbench_access_entity_create_access out of existence.
- πΊπΈUnited States agentrickard Georgia (US)
To be clear, I closed this in favor of β¨ Add option to auto add node-author to the selected editorial section if not already present Active , which seems like the proper solution to the stated problem.
If we just let users create, they could get locked out of that content.
The alternative, which I would define in a new issue, is to create a permission "Create and edit own content without assignment" that lets people bypass Workbench Access for content that they own.
- πΊπΈUnited States Katy Jockelson
To follow up with something that works for me here.
larowlan suggested:
So the issue here is workbench_access_entity_create_access returns false for a user with no sections.
One approach could be to have a generic section, and auto-add that to a user in a hook_user_insert.
At least they'd have one section then.
A neater solution, that worked with my setup, was to create a generic section and then use the 'Roles' feature to say all users with role X are automatically added to that. That mitigated the need to write code to auto-assign each user to the generic section.