@truedat/core 7.1.6 → 7.1.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/core",
3
- "version": "7.1.6",
3
+ "version": "7.1.8",
4
4
  "description": "Truedat Web Core",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -36,7 +36,7 @@
36
36
  "@testing-library/react": "^12.0.0",
37
37
  "@testing-library/react-hooks": "^8.0.1",
38
38
  "@testing-library/user-event": "^13.2.1",
39
- "@truedat/test": "7.1.6",
39
+ "@truedat/test": "7.1.8",
40
40
  "babel-jest": "^28.1.0",
41
41
  "babel-plugin-dynamic-import-node": "^2.3.3",
42
42
  "babel-plugin-lodash": "^3.3.4",
@@ -118,5 +118,5 @@
118
118
  "react-dom": ">= 16.8.6 < 17",
119
119
  "semantic-ui-react": ">= 2.0.3 < 2.2"
120
120
  },
121
- "gitHead": "0d15ef9da4d597618a5e3543ad2173e3d76f258b"
121
+ "gitHead": "eb92417df5ba0fbc5bc9f670d0d8540c39e3d712"
122
122
  }
@@ -197,6 +197,8 @@ export const GlossaryMenu = ({ bgSubscopes, rootSubscopes }) => {
197
197
  "business_glossary_management",
198
198
  ]);
199
199
 
200
+ const managementAuthorized = useAuthorized(["business_glossary_management"]);
201
+
200
202
  const location = useLocation();
201
203
 
202
204
  if (!authorized) return null;
@@ -252,14 +254,15 @@ export const GlossaryMenu = ({ bgSubscopes, rootSubscopes }) => {
252
254
  );
253
255
  });
254
256
 
255
- const managementSubmenu = rootSubscopes.length > 0 && (
256
- <Submenu
257
- key="glossary.management"
258
- icon={managegmentIcon}
259
- name="glossary.management"
260
- items={buildManagementSubmenuItems()}
261
- />
262
- );
257
+ const managementSubmenu =
258
+ managementAuthorized && rootSubscopes.length > 0 ? (
259
+ <Submenu
260
+ key="glossary.management"
261
+ icon={managegmentIcon}
262
+ name="glossary.management"
263
+ items={buildManagementSubmenuItems()}
264
+ />
265
+ ) : null;
263
266
 
264
267
  return (
265
268
  <>