shuttlepro-shared 1.3.20 → 1.3.21

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.
@@ -194,7 +194,8 @@ const findUserWorkspaces = async (userId) => {
194
194
  .select("userId roleId workspaceId")
195
195
  .populate({
196
196
  path: "roleId",
197
- select: "id name userId userShift permissionId modulePermissions",
197
+ select:
198
+ "id name userId userShift permissionId modulePermissions allowedModules",
198
199
  populate: [{ path: "permissionId", select: "id name" }],
199
200
  })
200
201
  .populate({
@@ -280,6 +280,7 @@ const workspaceSchema = new mongoose.Schema(
280
280
  default: "everyone",
281
281
  },
282
282
  defaultShift: { type: String, default: "" },
283
+ allowedModules: [],
283
284
  },
284
285
  { timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
285
286
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.3.20",
3
+ "version": "1.3.21",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {