Support admin-less events #67
Conversation
steeevin88
left a comment
There was a problem hiding this comment.
a few comments
i'm fine with merging this now but this definitely won't be our end-logic b/c it's technically not safe 😅 we need to properly verify that the user-role isn't just a spoofed value
#41 will solve this but it's a bit complicated... we can just merge this now + fix it
|
can you also remoe |
e9d1dd9 to
4b941e1
Compare
05b64c9 to
574adbe
Compare
There was a problem hiding this comment.
was this tested? if not can we test this + provide screenshots in the PR description 😄
also this is targeted to merge into your branch for #64 , but we should probably just merge this into main? not sure how to "redirect" it. we can merge either first
edit: to change the branch you can just edit the PR + it'll let you change the target branch
574adbe to
1eadfd0
Compare
- Event.CanEdit: when Admins is empty, only callers asserting the site admin role may edit; otherwise only listed admins. - PATCH/DELETE handlers: read userID and userRole from gin context (set by the auth middleware from #69); remove query param fallback. - Short doc comment on Admins field. Closes #65 Made-with: Cursor
1eadfd0 to
1483482
Compare
steeevin88
left a comment
There was a problem hiding this comment.
awesome, thanks for fixing everything
Admin Less tesing:
Closes #65