Skip to content

Conversation

@johnbillion
Copy link
Owner

It's possible for a user on a Multisite network to have access to the Network Admin screens without being a Super Admin, for example via a role which grants the manage_network capability.

In this situation, the 'Stream' menu shows up in the admin toolbar menu even though the user doesn't have access to it. If they click the menu item they'll see a "Sorry, you are not allowed to access this page" error message.

This fixes that.

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).
  • I have added phpunit tests.

Release Changelog

  • Fix: Describe a bug fix included in this release.

@szepeviktor
Copy link

szepeviktor commented Mar 7, 2024

Wrong repo!
This is a self-PR.

👉🏻 xwp/stream@develop...johnbillion:stream:view-cap

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.

3 participants