You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just one quick note about implementation: I think it makes the most sense to reject bad requests, rather than modify the response.
i.e. if a request comes in from a contributor asking for published posts, we should reject it, rather than sending them drafts.
sidemt
changed the title
Modify the backend API to do not return published posts to Contributors
Modify the backend API to reject requests for published posts from Contributors
Nov 22, 2023
To expand on it slightly: the rationale is just that it's easier to reason about if the api's response is predictable. It either does what you ask because you've made an allowed request or it rejects your request because you haven't.
As discussed in the comments on #337
The text was updated successfully, but these errors were encountered: