-
-
Notifications
You must be signed in to change notification settings - Fork 547
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
[5.x] Allow accessing drafts via the REST API with Live Preview #10229
[5.x] Allow accessing drafts via the REST API with Live Preview #10229
Conversation
…-endpoint # Conflicts: # tests/API/APITest.php
This works, but feels a bit inconsistent. I know we chatted about this in Slack already and this is what we agreed on, but thinking about it a bit more now, I don't want to develop ourselves into an awkward situation later. For instance I could see eventually allowing filters on the show route, or having the default filtering on the show route. It probably should already do that. e.g. "scheduled" entries aren't showed on the index route, but they are on the show route. You could argue that's a bug. If we "fixed" it then we'd have to factor in this I think we could just fix the live preview issue for now, as that's what it seems like the actual issue is at the moment. |
Draft entries couldn't be viewed in Live Preview, even when the
token
query parameter was provided.This PR fixes that by preventing the "entry published" check from happening if a valid Live Preview token is passed in the request.
Closes #10207.