Problem/Motivation
All users have access to the SPAM tab on the user's own page, even if they don't have access to the route provided by that tab.
Steps to reproduce
Log in as a user with no special permissions. Visit any user's page, including but not limited to the user's own page. Observe the SPAM tab.
Proposed resolution
This bug is caused by unneeded and incorrect implementation of hook_menu_local_tasks_alter in spambot.module, presumably created by the upgrader automated code conversion from Drupal 7. The link defined in spambot.links.task.yml already creates the SPAM tab on the entity.user.canonical route, so nothing else is needed.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | spambot-spam_tab-3211476-2.patch | 1.61 KB | danchadwick |
Comments
Comment #2
danchadwick commentedComment #3
carsonwComment #4
kala4ekComment #5
klemendev commentedAny plans on getting this in a release? Seems to be RTBC.
Comment #7
kala4ek