@live-change/access-control-frontend 0.2.2 → 0.2.4

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.
@@ -69,6 +69,7 @@
69
69
 
70
70
  const authorized = computed(() => {
71
71
  const clientRoles = accessRoles.value
72
+ if(requiredRoles.length == 0) return true
72
73
  for(const requiredRolesOption of requiredRoles) {
73
74
  if((Array.isArray(requiredRolesOption) ? requiredRolesOption : [requiredRolesOption])
74
75
  .every(role => clientRoles.includes(role))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/access-control-frontend",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "scripts": {
5
5
  "memDev": "lcli memDev --enableSessions --initScript ./init.js --dbAccess",
6
6
  "localDevInit": "rm tmp.db; lcli localDev --enableSessions --initScript ./init.js",
@@ -27,12 +27,12 @@
27
27
  "@live-change/dao-websocket": "0.5.6",
28
28
  "@live-change/db-admin": "0.5.17",
29
29
  "@live-change/framework": "0.6.14",
30
- "@live-change/frontend-base": "^0.2.2",
30
+ "@live-change/frontend-base": "^0.2.4",
31
31
  "@live-change/password-authentication-service": "0.2.51",
32
32
  "@live-change/secret-code-service": "0.2.51",
33
33
  "@live-change/secret-link-service": "0.2.51",
34
34
  "@live-change/session-service": "0.2.51",
35
- "@live-change/user-frontend": "^0.2.2",
35
+ "@live-change/user-frontend": "^0.2.4",
36
36
  "@live-change/user-service": "0.2.51",
37
37
  "@live-change/vue3-components": "0.2.15",
38
38
  "@live-change/vue3-ssr": "0.2.15",
@@ -65,5 +65,5 @@
65
65
  "author": "",
66
66
  "license": "BSD-3-Clause",
67
67
  "description": "",
68
- "gitHead": "f7abc1d907b85c321e629086c162e4b622eee91b"
68
+ "gitHead": "f4696b12b62875bdca61a3b3c3b584c3992792c8"
69
69
  }