mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-30 22:49:27 +02:00
Add role aware updates & endpoints
This commit is contained in:
parent
e40ff5d716
commit
9605b7f022
49 changed files with 1587 additions and 79 deletions
|
@ -41,7 +41,7 @@ export async function createOrg(req: Request, res: Response, next: NextFunction)
|
|||
// Check if the user has permission to list sites
|
||||
const hasPermission = await checkUserActionPermission(ActionsEnum.createOrg, req);
|
||||
if (!hasPermission) {
|
||||
return next(createHttpError(HttpCode.FORBIDDEN, 'User does not have permission to list sites'));
|
||||
return next(createHttpError(HttpCode.FORBIDDEN, 'User does not have permission to perform this action'));
|
||||
}
|
||||
|
||||
const { name, domain } = parsedBody.data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue