@live-change/access-control-frontend 0.8.67 → 0.8.69

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.
@@ -53,7 +53,7 @@
53
53
  availableRoles, availablePublicSessionRoles, availablePublicUserRoles, availableRequestedRoles,
54
54
  defaultInviteRoles,
55
55
  multiRole,
56
- sessionRolesVisible, userRolesVisible, requestedRolesVisible
56
+ sessionRolesVisible, userRolesVisible, requestedRolesVisible, adminRoles
57
57
  } = defineProps({
58
58
  object: {
59
59
  type: String,
@@ -106,6 +106,10 @@
106
106
  requestedRolesVisible: {
107
107
  type: Boolean,
108
108
  default: true
109
+ },
110
+ adminRoles: {
111
+ type: Array,
112
+ default: () => ['administrator']
109
113
  }
110
114
  })
111
115
 
@@ -129,7 +133,9 @@
129
133
 
130
134
  const myRoles = computed(() => access.value ? access.value.roles : [])
131
135
 
132
- const isAdmin = computed(() => myRoles.value.includes('administrator'))
136
+ const isAdmin = computed(() => myRoles.value.find(
137
+ role => adminRoles.includes(role)
138
+ ))
133
139
  const canInvite = computed(() => myRoles.value.length > 0)
134
140
 
135
141
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/access-control-frontend",
3
- "version": "0.8.67",
3
+ "version": "0.8.69",
4
4
  "scripts": {
5
5
  "memDev": "node server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
6
6
  "localDevInit": "rm tmp.db; lcli localDev --enableSessions --initScript ./init.js",
@@ -21,22 +21,22 @@
21
21
  },
22
22
  "type": "module",
23
23
  "dependencies": {
24
- "@live-change/access-control-service": "^0.8.67",
25
- "@live-change/cli": "^0.8.67",
26
- "@live-change/dao": "^0.8.67",
27
- "@live-change/dao-vue3": "^0.8.67",
28
- "@live-change/dao-websocket": "^0.8.67",
29
- "@live-change/db-admin": "^0.8.67",
30
- "@live-change/framework": "^0.8.67",
31
- "@live-change/frontend-base": "^0.8.67",
32
- "@live-change/password-authentication-service": "^0.8.67",
33
- "@live-change/secret-code-service": "^0.8.67",
34
- "@live-change/secret-link-service": "^0.8.67",
35
- "@live-change/session-service": "^0.8.67",
36
- "@live-change/user-frontend": "^0.8.67",
37
- "@live-change/user-service": "^0.8.67",
38
- "@live-change/vue3-components": "^0.8.67",
39
- "@live-change/vue3-ssr": "^0.8.67",
24
+ "@live-change/access-control-service": "^0.8.69",
25
+ "@live-change/cli": "^0.8.69",
26
+ "@live-change/dao": "^0.8.69",
27
+ "@live-change/dao-vue3": "^0.8.69",
28
+ "@live-change/dao-websocket": "^0.8.69",
29
+ "@live-change/db-admin": "^0.8.69",
30
+ "@live-change/framework": "^0.8.69",
31
+ "@live-change/frontend-base": "^0.8.69",
32
+ "@live-change/password-authentication-service": "^0.8.69",
33
+ "@live-change/secret-code-service": "^0.8.69",
34
+ "@live-change/secret-link-service": "^0.8.69",
35
+ "@live-change/session-service": "^0.8.69",
36
+ "@live-change/user-frontend": "^0.8.69",
37
+ "@live-change/user-service": "^0.8.69",
38
+ "@live-change/vue3-components": "^0.8.69",
39
+ "@live-change/vue3-ssr": "^0.8.69",
40
40
  "@vueuse/core": "^10.11.0",
41
41
  "codeceptjs-assert": "^0.0.5",
42
42
  "compression": "^1.7.4",
@@ -53,7 +53,7 @@
53
53
  "vue3-scroll-border": "0.1.6"
54
54
  },
55
55
  "devDependencies": {
56
- "@live-change/codeceptjs-helper": "^0.8.67",
56
+ "@live-change/codeceptjs-helper": "^0.8.69",
57
57
  "codeceptjs": "^3.6.5",
58
58
  "generate-password": "1.7.1",
59
59
  "playwright": "^1.41.2",
@@ -64,5 +64,5 @@
64
64
  "author": "Michał Łaszczewski <michal@laszczewski.pl>",
65
65
  "license": "BSD-3-Clause",
66
66
  "description": "",
67
- "gitHead": "ff74842a56f547052f0a5af26788475ca8f064e4"
67
+ "gitHead": "57f25e13fd727c638d5ab23e724b6e12a4e3735a"
68
68
  }