feature: the beginnings of chat working
This commit is contained in:
parent
85024c6e62
commit
649ff432bb
24 changed files with 1555 additions and 918 deletions
|
@ -6,7 +6,7 @@ export const PRECHECKS: PRECHECK_TABLE = {};
|
|||
|
||||
// GET /api/users/me - Get the current user
|
||||
PRECHECKS.GET = [get_session, get_user, require_user, (_req: Request, meta: Record<string, any>): Response | undefined => {
|
||||
const can_read_self = meta.user?.permissions.includes('self.read');
|
||||
const can_read_self = meta.user.permissions.includes('self.read');
|
||||
|
||||
if (!can_read_self) {
|
||||
return CANNED_RESPONSES.permission_denied();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue