@ejfdelgado/ejflab-back 1.35.10 → 1.35.11

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.35.10",
3
+ "version": "1.35.11",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -249,7 +249,8 @@ export class MyFileService {
249
249
  if (roles) {
250
250
  // It roles, then at least needs authenticated user
251
251
  if (!user) {
252
- throw new NoAutorizadoException();
252
+ reject(new NoAutorizadoException("Not authorized"));
253
+ return;
253
254
  }
254
255
  // Here improve security adding role based scheme
255
256
  }