corebasic 1.0.159 → 1.0.160

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.
Files changed (2) hide show
  1. package/libs/session.js +1 -1
  2. package/package.json +1 -1
package/libs/session.js CHANGED
@@ -29,7 +29,7 @@ export const start = (expressApp, allowedUrls) => {
29
29
 
30
30
  const checkPrivilege = async req => {
31
31
  const staff = Utils.isEmpty(req.body.staff) ? 'BLANK_STAFF' : req.body.staff
32
- const granted = (await Features.send({company: req.body.company, outlet: req.body.outlet}, "privileges.query.check", {feature: req.body.feature }, {id: staff})).data.granted
32
+ const granted = (await Features.send({company: req.body.company, outlet: req.body.outlet, app: req.body.app}, "privileges.query.check", {feature: req.body.feature }, {id: staff})).data.granted
33
33
  if (!granted)
34
34
  throw {message: "Access Denied"}
35
35
  return granted
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "corebasic",
3
3
  "type": "module",
4
- "version": "1.0.159",
4
+ "version": "1.0.160",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {