chore: debugging code removal
This commit is contained in:
parent
f276fe74da
commit
5d244f65c7
1 changed files with 0 additions and 1 deletions
|
@ -6,7 +6,6 @@ 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');
|
||||
console.dir({ meta, can_read_self });
|
||||
|
||||
if (!can_read_self) {
|
||||
return CANNED_RESPONSES.permission_denied();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue