Description
hasAccessToOrg and getUser are both declared but never read in files.ts and users.ts. It seems there's some logic missing to make this work correctly.
The YT video about orgId authorization is a bit messy/unclear and the code shown in the video doesn't match the repo:
https://www.youtube.com/watch?v=27hMNWcsa-Y&t=3765s
I can upload files to the convex db and see those files under "files" in the Convex DB, but the data table is empty: No files and no users.
Although the files can be uploaded, the toast is shown every time: ConvexError: you do not have access to this org.
The console error is:
[CONVEX M(files:createFile)] [Request ID: 15ff8b3cefe2071a] Server Error
Uncaught ConvexError: you do not have access to this org
at handler (../convex/files.ts:66:4)
I've tried with a "normal" user and an organization user, but this makes no difference. The error persists with both a user with or without and organization.
Everything else is working nicely, but I can't figure out the logic to make this work or fix it. Please fix this issue and update the main or add a branch with this fix @webdevcody