Problem/Motivation
Steps to reproduce:
- On the module's config page
admin/config/gdpr/compliancethe "Enable on user registration" option is checked. - Expected: administrator still should be able to create other user accounts via the
/admin/people/createpage. - Result: the "I have read and agree to the Cookie & Privacy Policy" option appears even on the
/admin/people/createpage too, and Chrome's client-side validation blocks the form submission as the consent is mandatory. This way administrator cannot create new user entities:
Proposed resolution
Ensure that the module handles separately the /user/register and /admin/people/create forms.
Remaining tasks
Figure out where to place a proper IF condition (in routing check maybe?), then diff a patch, test and commit.
User interface changes
Site administrators should be able again to create user accounts while the module is active on the registration page.
Raising priority to Major, because causing regression on a core feature.
| Comment | File | Size | Author |
|---|---|---|---|
| consent-checkbox-appears-admin-people-create.png | 20.78 KB | baluertl |

Comments
Comment #3
apolitsin commentedThanks!
Fix added to https://www.drupal.org/project/gdpr_compliance/releases/8.x-1.7
Comment #4
apolitsin commentedComment #6
kduryee commentedI just upgraded from 8x-1.6 to 8x-1.8 specifically in order to fix this issue, however, the checkbox still appears at the bottom of the node edit page, exactly the same as the original poster's image. Did the fix fall out moving from 1.7 to 1.8?
Comment #7
apolitsin commentedComment #9
apolitsin commentedThank you, kduryee for your feedback!
I added a obvious verification to prevent the display of the checkbox on the user administration page.
Check version 8.x-1.9.