-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Identity/Git Gateway users with insufficient permissions see UI with "no entries" #647
Comments
Video snippet from a user test wherein this bug was seen. It's a bit confusing to watch as you only hear me speaking and not the test participant as well. |
The applicable code almost looks invalid: |
Yep that's wrong. |
OK, that code was only breaking #792, this issue is separate. How do you guys see this being done? Just log out if we get a 401 from |
Gitter chat with fix: https://gitter.im/netlify/NetlifyCMS?at=5a073c0b505b630c05ce92b9. |
Agreed, here are the relevant bits from that chat:
|
- Do you want to request a feature or report a bug?
bug
- What is the current behavior?
When using Netlify Identity & Git Gateway, you're able to specify which user roles (assigned with Identity) have permission to access the site's Git Gateway. If the CMS is set up with a
git-gateway
backend, and a user not assigned a role with permission to use Git Gateway logs in, the user will get access to the CMS UI, including the Collections side bar, but without any content. Collection names are visible, but clicking on any collection produces "no entries" in the main section.- If the current behavior is a bug, please provide the steps to reproduce.
- What is the expected behavior?
I would expect that the user not be able to log in to the CMS at all, preferably with an error message explaining that they don't have permission.
- Please mention your CMS, node.js, and operating system version.
CMS 0.5.0-beta.8 on current Chrome
The text was updated successfully, but these errors were encountered: