Problem/Motivation
When editing a node, the URL path settings section contains a link to admin/config/search/path/patterns, regardless of whether the authorised user has the administer pathauto permission.

Clicking on this link can then lead the user to an access denied page.

It would be better UX to only display the link if the user has the administer pathauto permission.
This may effect other administration pages where pathauto can insert this link.
Verified to affect current 8.x-1.x as well as 8.x-1.0-beta1.
Proposed resolution
Only provide the link to administer pathauto when the user has the permission to access it.
Remaining tasks
Identify all pages where pathauto can insert this link. For each, only insert it if the user has administer pathauto permission.
User interface changes
See above.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | patch_2840749.diff | 1.1 KB | lpsolit |
| Access_denied___pathauto_8_x-1_x.png | 22.81 KB | eli-t | |
| configure_url_alias_patterns.png | 182.51 KB | eli-t |
Comments
Comment #2
lpsolit commentedComment #3
berdirThanks. Combining translatable strings is always tricky, it gets *really* complicated with things like right to left languages like russian.
The safe option is to define two separate t() calls, one with the link and one without.
Comment #4
lpsolit commentedComment #6
berdirThanks.