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

Closed
wants to merge 2 commits into 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
Copy link
Contributor

@trymebytes trymebytes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

bazza pushed a commit that referenced this pull request May 28, 2024
@amieiro
Copy link
Contributor Author

amieiro commented May 28, 2024

Deployed here.

@amieiro amieiro closed this May 28, 2024
@amieiro amieiro deleted the enable-gte-crud-events branch May 28, 2024 09:05
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
3 participants