Skip to content

prettier permission denied - #767

Merged
simonLeary42 merged 3 commits into
mainfrom
prettier-permission-denied
Aug 25, 2026
Merged

prettier permission denied#767
simonLeary42 merged 3 commits into
mainfrom
prettier-permission-denied

Conversation

@simonLeary42

@simonLeary42 simonLeary42 commented Aug 25, 2026

Copy link
Copy Markdown
Member
image

pi.php sends "bad request" when the user is not a PI when it should be sending "forbidden".

I considered making "permission denied" send a message and make the browser redirect back to home, but this seems unnecessarily confusing to the user. If they click a link and get permission denied and get teleported back to the home page, they don't even know what page was it that they got permission denied from. Instead let them see the "permission denied" message on the correct page, and provide them a hyperlink to the home page.

@simonLeary42
simonLeary42 force-pushed the prettier-permission-denied branch from 8bae772 to b6a6637 Compare August 25, 2026 13:34
@simonLeary42
simonLeary42 merged commit 3b59857 into main Aug 25, 2026
4 checks passed
@simonLeary42
simonLeary42 deleted the prettier-permission-denied branch August 25, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant