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

Feature: allow defining of settings capability for more granular access control #1599

Merged

Conversation

spenserhale
Copy link
Contributor

What

Introduces optional constant WP_STREAM_SETTINGS_CAPABILITY to allow site owners to set more granular control over who can manage Stream's settings. It defaults to the existing manage_options for backward compatibility.

Why

We run a large multisite and request the ability to have a custom capability name so we can filter access to Stream settings for our network and site admins based on user settings.

Checklist

  • Project documentation has been updated to reflect the changes in this pull request, if applicable.
  • I have tested the changes in the local development environment (see contributing.md).

Introduces const WP_STREAM_SETTINGS_CAPABILITY to allow site owners to set more granular control on who can manage Stream's settings.
@marcinkrzeminski
Copy link
Collaborator

@spenserhale thank you for contributing.

Here's a link to the related enhancement proposed https://github.com/hokoo by #1553

@marcinkrzeminski marcinkrzeminski merged commit 97fd93e into xwp:develop Oct 9, 2024
1 check passed
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.

2 participants