mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-31 23:10:00 +02:00
move action permission check to middleware
This commit is contained in:
parent
03051878ef
commit
372e51c0a5
48 changed files with 266 additions and 936 deletions
|
@ -6,10 +6,9 @@ import { orgs, userOrgs } from "@server/db/schema";
|
|||
import response from "@server/utils/response";
|
||||
import HttpCode from "@server/types/HttpCode";
|
||||
import createHttpError from "http-errors";
|
||||
import { ActionsEnum, checkUserActionPermission } from "@server/auth/actions";
|
||||
import logger from "@server/logger";
|
||||
import { createAdminRole } from "@server/db/ensureActions";
|
||||
import config, { APP_PATH } from "@server/config";
|
||||
import config from "@server/config";
|
||||
import { fromError } from "zod-validation-error";
|
||||
|
||||
const createOrgSchema = z.object({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue