@things-factory/reference-app 6.2.50 → 6.2.52
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 +8 -6
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +33 -33
package/client/bootstrap.js
CHANGED
|
@@ -109,7 +109,9 @@ export default async function bootstrap() {
|
|
|
109
109
|
})
|
|
110
110
|
|
|
111
111
|
/* add addon-menu management page morenda */
|
|
112
|
-
if (
|
|
112
|
+
if (
|
|
113
|
+
await hasPrivilege({ privilege: 'mutation', category: 'menu', domainOwnerGranted: true, superUserGranted: true })
|
|
114
|
+
) {
|
|
113
115
|
store.dispatch({
|
|
114
116
|
type: ADD_MORENDA,
|
|
115
117
|
morenda: {
|
|
@@ -125,7 +127,7 @@ export default async function bootstrap() {
|
|
|
125
127
|
/* set auth management menus into more-panel */
|
|
126
128
|
setAuthManagementMenus()
|
|
127
129
|
|
|
128
|
-
if (await hasPrivilege({
|
|
130
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'user' })) {
|
|
129
131
|
store.dispatch({
|
|
130
132
|
type: ADD_MORENDA,
|
|
131
133
|
morenda: {
|
|
@@ -138,7 +140,7 @@ export default async function bootstrap() {
|
|
|
138
140
|
})
|
|
139
141
|
}
|
|
140
142
|
|
|
141
|
-
if (await hasPrivilege({
|
|
143
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'board' })) {
|
|
142
144
|
store.dispatch({
|
|
143
145
|
type: ADD_MORENDA,
|
|
144
146
|
morenda: {
|
|
@@ -184,7 +186,7 @@ export default async function bootstrap() {
|
|
|
184
186
|
})
|
|
185
187
|
}
|
|
186
188
|
|
|
187
|
-
if (await hasPrivilege({
|
|
189
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'scenario' })) {
|
|
188
190
|
store.dispatch({
|
|
189
191
|
type: ADD_MORENDA,
|
|
190
192
|
morenda: {
|
|
@@ -219,7 +221,7 @@ export default async function bootstrap() {
|
|
|
219
221
|
})
|
|
220
222
|
}
|
|
221
223
|
|
|
222
|
-
if (await hasPrivilege({
|
|
224
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'state-register' })) {
|
|
223
225
|
store.dispatch({
|
|
224
226
|
type: ADD_MORENDA,
|
|
225
227
|
morenda: {
|
|
@@ -361,7 +363,7 @@ export default async function bootstrap() {
|
|
|
361
363
|
}
|
|
362
364
|
})
|
|
363
365
|
|
|
364
|
-
if (await hasPrivilege({
|
|
366
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'security' })) {
|
|
365
367
|
store.dispatch({
|
|
366
368
|
type: ADD_SETTING,
|
|
367
369
|
setting: {
|