@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 +1 -1
- package/srv/MyFileService.mjs +2 -1
package/package.json
CHANGED
package/srv/MyFileService.mjs
CHANGED
|
@@ -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
|
-
|
|
252
|
+
reject(new NoAutorizadoException("Not authorized"));
|
|
253
|
+
return;
|
|
253
254
|
}
|
|
254
255
|
// Here improve security adding role based scheme
|
|
255
256
|
}
|