@things-factory/reference-app 6.2.49 → 6.2.51
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/client/bootstrap.js +18 -5
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +33 -33
package/client/bootstrap.js
CHANGED
|
@@ -8,6 +8,7 @@ import '@operato/dataset/usecase/qc'
|
|
|
8
8
|
import '@operato/dataset/ox-property-editor-ccp-limits.js'
|
|
9
9
|
import '@operato/dataset/ox-property-editor-qc-limits.js'
|
|
10
10
|
import '@operato/i18n/ox-i18n.js'
|
|
11
|
+
import '@things-factory/setting-ui' /* secure-iplist-setting-let */
|
|
11
12
|
|
|
12
13
|
import { html } from 'lit-html'
|
|
13
14
|
|
|
@@ -108,7 +109,9 @@ export default async function bootstrap() {
|
|
|
108
109
|
})
|
|
109
110
|
|
|
110
111
|
/* add addon-menu management page morenda */
|
|
111
|
-
if (
|
|
112
|
+
if (
|
|
113
|
+
await hasPrivilege({ privilege: 'mutation', category: 'menu', domainOwnerGranted: true, superUserGranted: true })
|
|
114
|
+
) {
|
|
112
115
|
store.dispatch({
|
|
113
116
|
type: ADD_MORENDA,
|
|
114
117
|
morenda: {
|
|
@@ -124,7 +127,7 @@ export default async function bootstrap() {
|
|
|
124
127
|
/* set auth management menus into more-panel */
|
|
125
128
|
setAuthManagementMenus()
|
|
126
129
|
|
|
127
|
-
if (await hasPrivilege({
|
|
130
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'user' })) {
|
|
128
131
|
store.dispatch({
|
|
129
132
|
type: ADD_MORENDA,
|
|
130
133
|
morenda: {
|
|
@@ -137,7 +140,7 @@ export default async function bootstrap() {
|
|
|
137
140
|
})
|
|
138
141
|
}
|
|
139
142
|
|
|
140
|
-
if (await hasPrivilege({
|
|
143
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'board' })) {
|
|
141
144
|
store.dispatch({
|
|
142
145
|
type: ADD_MORENDA,
|
|
143
146
|
morenda: {
|
|
@@ -183,7 +186,7 @@ export default async function bootstrap() {
|
|
|
183
186
|
})
|
|
184
187
|
}
|
|
185
188
|
|
|
186
|
-
if (await hasPrivilege({
|
|
189
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'scenario' })) {
|
|
187
190
|
store.dispatch({
|
|
188
191
|
type: ADD_MORENDA,
|
|
189
192
|
morenda: {
|
|
@@ -218,7 +221,7 @@ export default async function bootstrap() {
|
|
|
218
221
|
})
|
|
219
222
|
}
|
|
220
223
|
|
|
221
|
-
if (await hasPrivilege({
|
|
224
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'state-register' })) {
|
|
222
225
|
store.dispatch({
|
|
223
226
|
type: ADD_MORENDA,
|
|
224
227
|
morenda: {
|
|
@@ -359,4 +362,14 @@ export default async function bootstrap() {
|
|
|
359
362
|
template: html` <notification-setting-let></notification-setting-let> `
|
|
360
363
|
}
|
|
361
364
|
})
|
|
365
|
+
|
|
366
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'security' })) {
|
|
367
|
+
store.dispatch({
|
|
368
|
+
type: ADD_SETTING,
|
|
369
|
+
setting: {
|
|
370
|
+
seq: 31,
|
|
371
|
+
template: html` <secure-iplist-setting-let></secure-iplist-setting-let> `
|
|
372
|
+
}
|
|
373
|
+
})
|
|
374
|
+
}
|
|
362
375
|
}
|