@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ejfdelgado/ejflab-back",
3
- "version": "1.31.2",
3
+ "version": "1.32.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ejfdelgado/ejflab-back.git"
@@ -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;