Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter the CRUD permissions for the events #311

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

amieiro
Copy link
Contributor

@amieiro amieiro commented May 8, 2024

This PR filters the CRUD permissions for the events, so some special user can CRUD events, using the gp_translation_events_can_crud_event, available in the wporg-gp-translation-events plugin.

This PR overwrites the permissions of the plugin, adding CRUD permissions to:

  • The GP admins.
  • The site administrators, using the manage_options capability.
  • The GTEs.

Fixes WordPress/wporg-gp-translation-events#244.

@amieiro amieiro requested a review from psrpinto May 13, 2024 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable a wider audience to create events
2 participants