dms-middleware-auth 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/auth.middleware.js
CHANGED
|
@@ -87,7 +87,7 @@ let AuthMiddleware = class AuthMiddleware {
|
|
|
87
87
|
}
|
|
88
88
|
// Check route access
|
|
89
89
|
clientAttributes = JSON.parse(clientAttributes);
|
|
90
|
-
if (!clientAttributes[req.originalUrl]
|
|
90
|
+
if (!clientAttributes[req.originalUrl]) {
|
|
91
91
|
return res.status(403).json({ message: 'Access denied for this route' });
|
|
92
92
|
}
|
|
93
93
|
// Cache interface details
|
package/package.json
CHANGED
package/src/auth.middleware.ts
CHANGED
|
@@ -57,7 +57,7 @@ export class AuthMiddleware implements NestMiddleware {
|
|
|
57
57
|
|
|
58
58
|
// Check route access
|
|
59
59
|
clientAttributes = JSON.parse(clientAttributes);
|
|
60
|
-
if (!clientAttributes[req.originalUrl]
|
|
60
|
+
if (!clientAttributes[req.originalUrl]) {
|
|
61
61
|
return res.status(403).json({ message: 'Access denied for this route' });
|
|
62
62
|
}
|
|
63
63
|
|