adapt-authoring-roles 1.3.4 → 1.4.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.
@@ -8,7 +8,6 @@ class RolesModule extends AbstractApiModule {
8
8
  /** @override */
9
9
  async init () {
10
10
  await super.init()
11
- this.cache.isEnabled = true
12
11
  try {
13
12
  await this.initConfigRoles()
14
13
 
@@ -17,6 +16,7 @@ class RolesModule extends AbstractApiModule {
17
16
  } catch (e) {
18
17
  this.log('error', e)
19
18
  }
19
+ this.cache.isEnabled = true
20
20
  const [authlocal, users] = await this.app.waitForModule('auth-local', 'users')
21
21
  authlocal.registerHook.tap(this.onUpdateRoles.bind(this))
22
22
  users.requestHook.tap(this.onUpdateRoles.bind(this))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adapt-authoring-roles",
3
- "version": "1.3.4",
3
+ "version": "1.4.1",
4
4
  "description": "Module for managing user roles",
5
5
  "homepage": "https://github.com/adapt-security/adapt-authoring-roles",
6
6
  "license": "GPL-3.0",
@@ -50,7 +50,7 @@
50
50
  "adapt-authoring-auth": "^2.0.0",
51
51
  "adapt-authoring-auth-local": "^2.0.0",
52
52
  "adapt-authoring-core": "^2.0.0",
53
- "adapt-authoring-mongodb": "^2.0.0",
53
+ "adapt-authoring-mongodb": "^3.0.0",
54
54
  "adapt-authoring-users": "^1.0.2"
55
55
  }
56
56
  }