notherbase-fs 4.5.0 → 4.5.1
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/notherbase-fs.js +1 -0
- package/package.json +1 -1
package/notherbase-fs.js
CHANGED
|
@@ -100,6 +100,7 @@ class NotherBaseFS {
|
|
|
100
100
|
this.app.use(async (req, res, next) => {
|
|
101
101
|
req.Spirit = Spirit;
|
|
102
102
|
req.SendMail = SendMail;
|
|
103
|
+
req.globals = globals
|
|
103
104
|
req.user = req.session?.currentUser ? await req.Spirit.findOne({ service: "user", username: req.session.currentUser }) : null;
|
|
104
105
|
req.lock = false;
|
|
105
106
|
// enables sessions only if the protocol is https and we are in production, or if we are in development
|