forked from andyburke/autonomous.contact
spelling grammar
This commit is contained in:
parent
a2e035830c
commit
7a04d1f7af
7 changed files with 197 additions and 27 deletions
|
|
@ -29,7 +29,7 @@ export async function GET(_req: Request, meta: Record<string, any>): Promise<Res
|
|||
// POST /api/channels - Create a channel
|
||||
PRECHECKS.POST = [get_session, get_user, require_user, (_req: Request, meta: Record<string, any>): Response | undefined => {
|
||||
const can_create_channels = meta.user.permissions.includes('channels.create');
|
||||
|
||||
console.log('User permissions:', meta.user.permissions);
|
||||
if (!can_create_channels) {
|
||||
return CANNED_RESPONSES.permission_denied();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue