WordPress.org

Making WordPress.org

Opened 3 months ago

Closed 3 months 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:
Cc:

Description

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.


3 months ago

#2 @dd32
3 months 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.

https://plugins.trac.wordpress.org/changeset/2095613

Note: See TracTickets for help on using tickets.