diff --git a/.gitignore b/.gitignore index b74bc5a..af268c2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ data/ .fsdb public/files/* -.vscode/* \ No newline at end of file diff --git a/public/api/users/index.ts b/public/api/users/index.ts index 435a4ca..0e8cb98 100644 --- a/public/api/users/index.ts +++ b/public/api/users/index.ts @@ -10,7 +10,6 @@ import * as CANNED_RESPONSES from '../../../utils/canned_responses.ts'; import * as bcrypt from '@da/bcrypt'; import { INVITE_CODE, INVITE_CODES } from '../../../models/invites.ts'; - // TODO: figure out a better solution for doling out permissions const DEFAULT_USER_PERMISSIONS: string[] = [ 'files.write.own', @@ -37,14 +36,6 @@ const DEFAULT_USER_PERMISSIONS: string[] = [ 'watches.write.own' ]; -// TODO: figure out a better solution for doling out permissions -const DEFAULT_SUPERUSER_PERMISSIONS: string[] = [ - ...DEFAULT_USER_PERMISSIONS, - 'topics.create', - 'topics.delete', - 'topics.write', -]; - export const PRECHECKS: PRECHECK_TABLE = {}; // GET /api/users - get users @@ -129,7 +120,7 @@ export async function POST(req: Request, meta: Record): Promise): Promise