9 Commits

Author SHA1 Message Date
e5af6fd827
fix(middleware): critical security loophole
ensure that not logged in users can't access restricted stories via the api or regular pages
2024-11-12 16:42:51 -05:00
f049619178
fix(client-side): update story middleware
fix redirect url for unauthenticated users
2024-11-11 23:02:19 -05:00
a65590d47e
refactor(client-side): use to parameter to check for current url + associated params 2024-03-16 21:09:06 -04:00
8f45dbe563
style(*): edit indents 2023-12-29 20:53:29 -05:00
1447960b1a
refactor(db/models): update populatedDoc types
- remove `& Document` qualifier
- cast `T | number` to T with the `as` keyword
2023-12-29 19:06:55 -05:00
3e5af47107
refactor(*): refactor tsconfig paths
looks/feels nicer
2023-12-20 17:23:31 -05:00
989fefd6e7
fix(pages & middleware): throw error if non-author/collaborator tries to edit a story 2023-12-09 17:32:23 -05:00
a5346e8622
fix(client-side): add error check to story redirect middleware 2023-12-09 17:31:39 -05:00
fe7c452231
feat(client-side): create story middleware
redirect users to the login page if a story is restricted and they're not logged in
2023-12-06 22:19:05 -05:00