mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-03 17:44:44 +02:00
Add role aware updates & endpoints
This commit is contained in:
parent
41cbde1474
commit
364b2c26c3
49 changed files with 1587 additions and 79 deletions
|
@ -30,7 +30,7 @@ export async function getTarget(req: Request, res: Response, next: NextFunction)
|
|||
// Check if the user has permission to list sites
|
||||
const hasPermission = await checkUserActionPermission(ActionsEnum.getTarget, 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 target = await db.select()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue