Problem/Motivation
The Webform access module allows groups of users to be assigned specific permissions to multiple webform nodes. Only users with the 'administer webform' permission can currently manage these groups. Ideally selected users should be able to administer users assigned to an access group.
Proposed resolution
Add admin users to access groups. Admin users will be able to add and remove user accounts from an access group. Admin users can only manage users and will not be able to change what Webform nodes or permissions assigned to an access group.
Remaining tasks
Add webform_access_admin tableAdd update hook to create a new tableUpdate access group form to include 'Administrators' elementUpdate APIs to support adminsUpdate webform_access.schema.ymlUpdate 'Access group' (/admin/structure/webform/access/group/manage) listing to include adminsUpdate demo to create admin accountsAdd ‘Manage users’ to 'Access group' operationsUpdate 'Access' tab (/admin/structure/webform/access/group/manage) to allow admins to view assigned groupsWrite testsCreate a change record- Tag new beta release
Notes
- Admin will not be automatically assigned as a user to an acess group
- Admin can only add and remove users. All other group settings will be hidden, this includes title, description, webforms, and permissions.
- Admins can only add users via the 'Webform: Access' tab (/admin/structure/webform/access/group/manage).
User interface changes
- Access group admins will be displayed on the group list and editable in the group edit form
API changes
TDB
Data model changes
- New 'webform_access_admin' table
Release notes snippet
TDB
| Comment | File | Size | Author |
|---|---|---|---|
| #19 | 3043276-19.patch | 36.99 KB | jrockowitz |
| #14 | 3043276-14.patch | 35.02 KB | jrockowitz |
| #12 | 3043276-12.patch | 32.11 KB | jrockowitz |
Comments
Comment #2
brt commentedThis solution sound very useful.
Along the same lines it would be great if an access group could be assigned an email address. One could the have an email handler that can send mails to the group email, which does not need to belong to a drupal user.
Comment #3
jrockowitz commentedAdding custom email address support to access group tokens is not a lot of work but should be handled in a dedicated ticket.
Comment #4
jrockowitz commentedComment #5
jrockowitz commentedComment #6
jrockowitz commentedComment #7
jrockowitz commentedComment #8
jrockowitz commentedComment #10
jrockowitz commentedComment #12
jrockowitz commentedThe attached patch is fairly complete but has no test coverage.
Comment #14
jrockowitz commentedAttached patch includes test coverage.
Comment #16
jrockowitz commentedThis patch is ready for review.
Comment #19
jrockowitz commentedComment #21
jrockowitz commentedAll work related to this ticket is being merged into the patch for #3043755: Allow access groups to have custom email addresses.
Comment #22
brt commentedI've tested this from
https://www.drupal.org/project/webform/issues/3043755#comment-13052258
and it seems to be working as expected.
This it great, thank you.