@live-change/access-control-frontend 0.8.67 → 0.8.68
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.
|
|
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.
|
|
3
|
+
"version": "0.8.68",
|
|
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.
|
|
25
|
-
"@live-change/cli": "^0.8.
|
|
26
|
-
"@live-change/dao": "^0.8.
|
|
27
|
-
"@live-change/dao-vue3": "^0.8.
|
|
28
|
-
"@live-change/dao-websocket": "^0.8.
|
|
29
|
-
"@live-change/db-admin": "^0.8.
|
|
30
|
-
"@live-change/framework": "^0.8.
|
|
31
|
-
"@live-change/frontend-base": "^0.8.
|
|
32
|
-
"@live-change/password-authentication-service": "^0.8.
|
|
33
|
-
"@live-change/secret-code-service": "^0.8.
|
|
34
|
-
"@live-change/secret-link-service": "^0.8.
|
|
35
|
-
"@live-change/session-service": "^0.8.
|
|
36
|
-
"@live-change/user-frontend": "^0.8.
|
|
37
|
-
"@live-change/user-service": "^0.8.
|
|
38
|
-
"@live-change/vue3-components": "^0.8.
|
|
39
|
-
"@live-change/vue3-ssr": "^0.8.
|
|
24
|
+
"@live-change/access-control-service": "^0.8.68",
|
|
25
|
+
"@live-change/cli": "^0.8.68",
|
|
26
|
+
"@live-change/dao": "^0.8.68",
|
|
27
|
+
"@live-change/dao-vue3": "^0.8.68",
|
|
28
|
+
"@live-change/dao-websocket": "^0.8.68",
|
|
29
|
+
"@live-change/db-admin": "^0.8.68",
|
|
30
|
+
"@live-change/framework": "^0.8.68",
|
|
31
|
+
"@live-change/frontend-base": "^0.8.68",
|
|
32
|
+
"@live-change/password-authentication-service": "^0.8.68",
|
|
33
|
+
"@live-change/secret-code-service": "^0.8.68",
|
|
34
|
+
"@live-change/secret-link-service": "^0.8.68",
|
|
35
|
+
"@live-change/session-service": "^0.8.68",
|
|
36
|
+
"@live-change/user-frontend": "^0.8.68",
|
|
37
|
+
"@live-change/user-service": "^0.8.68",
|
|
38
|
+
"@live-change/vue3-components": "^0.8.68",
|
|
39
|
+
"@live-change/vue3-ssr": "^0.8.68",
|
|
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.
|
|
56
|
+
"@live-change/codeceptjs-helper": "^0.8.68",
|
|
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": "
|
|
67
|
+
"gitHead": "9f34ce84625f32092de0d93dcd19e4e4982982bd"
|
|
68
68
|
}
|