diff --git a/api/routes/media.ts b/api/routes/media.ts index c90c08e..097a1ab 100644 --- a/api/routes/media.ts +++ b/api/routes/media.ts @@ -23,7 +23,7 @@ app.get("/:id", hasRank(Rank.TEAM_MEMBER), async (req: AuthenticatedRequest, res if (!media) return res.status(404).json({message: "The provided asset could not be found"}); if (!(req.user.rank === Rank.TEAM_MEMBER && media.clientId === req.user.clientId || req.user.rank === Rank.ADMIN)) - return res.status(401).json({message: "You don't have the permission to show information about this link"}); + return res.status(401).json({message: "You don't have the permission to show information about this media"}); res.json(media); });