@drax/identity-vue 0.49.1 → 0.49.2

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.49.1",
6
+ "version": "0.49.2",
7
7
  "type": "module",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -28,7 +28,7 @@
28
28
  "@drax/common-vue": "^0.49.0",
29
29
  "@drax/crud-front": "^0.49.0",
30
30
  "@drax/crud-share": "^0.49.0",
31
- "@drax/crud-vue": "^0.49.0",
31
+ "@drax/crud-vue": "^0.49.2",
32
32
  "@drax/identity-share": "^0.49.0"
33
33
  },
34
34
  "peerDependencies": {
@@ -66,5 +66,5 @@
66
66
  "vue-tsc": "^2.1.6",
67
67
  "vuetify": "^3.7.1"
68
68
  },
69
- "gitHead": "dd2c28fa11adc2b9ff7a8cde6b190389c167bc0a"
69
+ "gitHead": "b6d9055c993340fb31bbad177366a0f5867e9eb1"
70
70
  }
@@ -39,7 +39,8 @@ class UserCrud extends EntityCrud implements IEntityCrud {
39
39
  }
40
40
 
41
41
  get isTenantEnabled(){
42
- return import.meta.env.VITE_DRAX_TENANT === 'ENABLE'
42
+ const authStore = useAuthStore()
43
+ return import.meta.env.VITE_DRAX_TENANT === 'ENABLE' && authStore.hasPermission('tenant:view')
43
44
  }
44
45
 
45
46