corebasic 1.0.120 → 1.0.121

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.
@@ -88,7 +88,7 @@ export const checkRequest = async (req) => {
88
88
  const getRoles = async (company, user, req) => {
89
89
  let staff = (await Dip.query(req.meta, "staff", { user: user }))[0]
90
90
  if (staff?._id === `${company}_DEFAULT`) // Company Creator Admin Access
91
- return true
91
+ return [req.body.feature]
92
92
  let roles = (await Dip.query(req.meta, "privileges.staff", { _id: staff._id }))[0].items.map(item => item._id)
93
93
  return getAllowedFeatures(company, roles)
94
94
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "corebasic",
3
3
  "type": "module",
4
- "version": "1.0.120",
4
+ "version": "1.0.121",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {