-
Notifications
You must be signed in to change notification settings - Fork 36
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
only show MT-button if user has publish rights for a page #3367
base: develop
Are you sure you want to change the base?
Conversation
Hi @MizukiTemma , I'm a bit lost as to why the tests are failing. I suspect it's because the message I am checking in the logs is the wrong message, but I'm not sure what to expect instead. Can you help me with that? |
@jonbulz |
776711e
to
4aad1f7
Compare
@MizukiTemma thanks, I see now. Since I don't change any actual permissions, the behavior in tests basically stays the same. I'll have to think about this, I don't think it's very clean. At the very least, I would like to have a test that investigates the expected user experience for authors |
4aad1f7
to
fb3cb66
Compare
@MizukiTemma I tried implementing a test to check if the button is visible for observers without publish rights. However, it seems that my approach is not working. Are you doing something similar somewhere else in the code? |
@MizukiTemma thanks! This is similar to what I have tried, though. I'm afraid that the part of the page I want to check is rendered later, because it never showed up in the response content. Maybe I should bring it up in the next weekly? |
Thank you a lot for tackling this issue 🚀 For the page view it works as expected :) |
Sure. Alternatively you can pop this discussion in one of our channels. It helps us to share the context before the weekly and someone may answer quicker. |
Short description
Show MT-button for pages only to users with publishing rights
Proposed changes
Side effects
Resolved issues
Fixes: #2961
Pull Request Review Guidelines