-
Notifications
You must be signed in to change notification settings - Fork 7
Bug hunt #1165
base: master
Are you sure you want to change the base?
Bug hunt #1165
Conversation
@DFurnes Per out chat today, I tried both using the full path to the Gate facade within the PostTransfomer, and also using kebab case Looking at the Northstar policy methods, I saw that the Rogue policy methods were missing the nullable type and thinking that could be a clue... but wondering if this potentially sheds any new light on the bug? |
Hmm, I think you're onto something! By default, Laravel disallows anonymous users from being authorized to do things unless you use those nullable types to add "guest user" support. These requests aren't really anonymous.... but they also come from machines (Gambit & Chompy) and not a traditional logged-in user! If you add those nullable types, does the logger from within |
Yes, just committed adding a logger into the Post Policy's |
Running the signup tests and can see this error -- where the test is passing a
|
Tried working around defining the class in 3a281de by setting a |
This reverts commit 3a281de.
What's this PR do?
This pull request looked promising to fix the bug reported in DoSomethingArchive/chompy#198 -- the debugging in Chompy displays the posts
details
in the API response.However, when my local Chompy then attempts to execute a
PATCH /posts/:id
request to update the post status, it receives an error with status 403:This action is unauthorized.
Per the 2nd commit, I thought that might be the issue where Gambit doesn't see
why_participated,
but I can see it breaks a ton of our tests (the 1st commit forPostPolicy
does not).How should this be reviewed?
...
Any background context you want to provide?
...
Relevant tickets
References Pivotal #.
Checklist