@ejfdelgado/ejflab-back 1.31.2 → 1.32.0
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/package.json +1 -1
- package/srv/AuthorizationSrv.mjs +5 -0
package/package.json
CHANGED
package/srv/AuthorizationSrv.mjs
CHANGED
@@ -194,6 +194,11 @@ export class AuthorizationSrv {
|
|
194
194
|
|
195
195
|
static hasPagePermisions(listaOr) {
|
196
196
|
return async (req, res, next) => {
|
197
|
+
// bypass
|
198
|
+
if (process.env.BYPASS_PERMISSIONS == "yes") {
|
199
|
+
next();
|
200
|
+
return;
|
201
|
+
}
|
197
202
|
if (listaOr.length == 0) {
|
198
203
|
next();
|
199
204
|
return;
|