mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-04 10:05:53 +02:00
Targets working?
This commit is contained in:
parent
0fa3382cda
commit
bf106c221e
3 changed files with 208 additions and 188 deletions
|
@ -33,7 +33,7 @@ export async function verifyTargetAccess(req: Request, res: Response, next: Next
|
|||
|
||||
const resourceId = target[0].resourceId;
|
||||
|
||||
if (resourceId) {
|
||||
if (!resourceId) {
|
||||
return next(
|
||||
createHttpError(
|
||||
HttpCode.INTERNAL_SERVER_ERROR,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue