Changeset 898cf68 for server/telefunc
- Timestamp:
- 12/26/25 22:21:22 (7 months ago)
- Branches:
- main
- Children:
- dd5067a
- Parents:
- e7f1bfa
- File:
-
- 1 edited
-
server/telefunc/ctx.ts (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
server/telefunc/ctx.ts
re7f1bfa r898cf68 33 33 const { c, userId } = requireUser(); 34 34 35 36 if(!c.session?.user?.isAdmin === false) throw Abort(); 37 35 38 const isAdmin = await drizzleQueries.isAdmin(c.db, userId); 39 if (!isAdmin) throw Abort(); 36 40 37 if (!isAdmin) throw Abort();38 41 return { c, userId }; 39 42 }
Note:
See TracChangeset
for help on using the changeset viewer.
