Making WordPress.org

Opened 2 years ago

Closed 2 years ago

#4474 closed defect (fixed)

Glossary items: Do not show 'Edit Entry' if user has no access

Reported by: casiepa Owned by:
Milestone: Priority: normal
Component: General Keywords:


Use Case: I'm logged in with my account on https://make.wordpress.org/polyglots, I'm checking the post https://make.wordpress.org/polyglots/2018/09/26/pte-request-for-repeat-order-for-woocommerce/ and I see certain underlined glossary words.
When I hover over e.g. 'localization' I see the 'Edit Entry' and I end up correctly on https://make.wordpress.org/polyglots/wp-admin/post.php?post=6152&action=edit to edit.

However, when hovering over 'meetup', I also see 'Edit Entry', but link is the one of the post itself because the 'meetup' words is defined in a glossary where I don't have access to.

Change requested: Only show 'Edit Entry' when the logged in user really has access to edit the relevant glossary item.

Change History (2)

This ticket was mentioned in Slack in #meta by casiepa. View the logs.

2 years ago

#2 @dd32
2 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Run the `edit_post` capability check on the source-for-the-glossary-definiton blog.

Fixes #4474.


Note: See TracTickets for help on using tickets.