Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
There are no user access checks for form elements added by pathauto_i18n module.
Example / screenshot
Unexpected form elements on user registration form for anonymous (clear Drupal 7 + pathauto_i18n module):
Proposed solution
We need to add user access checks.
User should have 'create url aliases' access or 'administer url aliases' access to view form elements.
Patch attached.
Tested on latest releases of Drupal 7 and Pathauto module.
Comment | File | Size | Author |
---|---|---|---|
pathauto_i18n-handle_user_access.patch | 653 bytes | bohart | |
|
Comments
Comment #3
sanchiz CreditAttribution: sanchiz at FFW, Five Jars, Drupal Ukraine Community for Drupal Ukraine Community commentedThank you @bohart! Committed.
Available now in 7.x-1.x-dev or in 7.x-1.5 and later once released.
Comment #4
sanchiz CreditAttribution: sanchiz at FFW, Five Jars, Drupal Ukraine Community for Drupal Ukraine Community commented