@rh-support/manage 2.5.7 → 2.5.10

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ManageGroupUsers.d.ts","sourceRoot":"","sources":["../../../../../src/components/Groups/ManageGroupUsers/ManageGroupUsers.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,eAAO,MAAM,gBAAgB,yBA4N5B,CAAC"}
1
+ {"version":3,"file":"ManageGroupUsers.d.ts","sourceRoot":"","sources":["../../../../../src/components/Groups/ManageGroupUsers/ManageGroupUsers.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,eAAO,MAAM,gBAAgB,yBAiQ5B,CAAC"}
@@ -130,7 +130,9 @@ export const ManageGroupUsers = () => {
130
130
  // eslint-disable-next-line react-hooks/exhaustive-deps
131
131
  }, [location.pathname, loggedInUsersAccount.data]);
132
132
  return (React.createElement(React.Fragment, null,
133
- React.createElement(AlertMessage, { variant: AlertType.INFO, show: loggedInUserRights.data.isOrgAdmin() && !loggedInUsersAccount.data.hasGroupACLs, isInline: true, className: "pf-v5-u-mb-md", title: t('Case Group ACL is not activated') },
133
+ React.createElement(AlertMessage, { variant: AlertType.INFO, show: loggedInUserRights.data.isOrgAdmin() &&
134
+ !loggedInUsersAccount.data.hasGroupACLs &&
135
+ !loggedInUserRights.data.isInternal(), isInline: true, className: "pf-v5-u-mb-md", title: t('Case Group ACL is not activated') },
134
136
  React.createElement("p", null,
135
137
  React.createElement(Trans, { i18nKey: "i18nRequestControl" },
136
138
  "To use case groups to limit user access, enable the",
@@ -144,6 +146,20 @@ export const ManageGroupUsers = () => {
144
146
  }, "data-tracking-id": "case-contact-phone-number-review" }, "Preferences")),
145
147
  React.createElement("br", null),
146
148
  React.createElement(Trans, null, "You can organize and group related cases and filter on the case list page, but you cannot change permissions for case groups unless the Case Group ACL is enabled."))),
149
+ React.createElement(AlertMessage, { variant: AlertType.INFO, show: loggedInUserRights.data.isInternal(), isInline: true, className: "pf-v5-u-mb-md", title: t('Case Group ACL is not available for internal users.') },
150
+ React.createElement("p", null,
151
+ React.createElement(Trans, { i18nKey: "i18nRequestControl" },
152
+ "As an internal user you can use case group without ACL functinality. To use case groups to limit user access, customers can enable the",
153
+ ' ',
154
+ React.createElement("a", { href: "https://access.redhat.com/articles/170453", target: "_blank", rel: "noopener noreferrer" }, "Case Group Access Control Lists (ACL)"),
155
+ ' ',
156
+ "under",
157
+ ' ',
158
+ React.createElement(Link, { key: "case-contact-phone-number-review", replace: true, to: {
159
+ pathname: '/manage/preferences',
160
+ }, "data-tracking-id": "case-contact-phone-number-review" }, "Preferences")),
161
+ React.createElement("br", null),
162
+ React.createElement(Trans, null, "Customers can organize and group related cases and filter on the case list page, but they cannot change permissions for case groups unless the Case Group ACL is enabled."))),
147
163
  React.createElement("header", null,
148
164
  React.createElement("h2", null, t('Groups')),
149
165
  React.createElement("p", null, t('Add or edit groups to easily filter while searching through cases.'))),
@@ -10,5 +10,5 @@ export function PreferencesBody(props) {
10
10
  React.createElement(PreferencesCaseSearch, null),
11
11
  React.createElement(PreferencesCaseView, null),
12
12
  React.createElement(PreferencesCaseCreate, null),
13
- loggedInUserRights.data.isOrgAdmin() && React.createElement(PreferencesACL, null)));
13
+ loggedInUserRights.data.isOrgAdmin() && !loggedInUserRights.data.isInternal() && React.createElement(PreferencesACL, null)));
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/manage",
3
- "version": "2.5.7",
3
+ "version": "2.5.10",
4
4
  "description": "Customer Support Manage App",
5
5
  "author": "Jordan Eudy <jeudy100@gmail.com>",
6
6
  "license": "ISC",
@@ -79,9 +79,9 @@
79
79
  "@patternfly/patternfly": "5.4.2",
80
80
  "@patternfly/react-core": "5.4.2",
81
81
  "@patternfly/react-table": "5.4.2",
82
- "@rh-support/components": "2.5.6",
82
+ "@rh-support/components": "2.5.9",
83
83
  "@rh-support/configs": "2.0.21",
84
- "@rh-support/react-context": "2.5.6",
84
+ "@rh-support/react-context": "2.5.9",
85
85
  "@rh-support/types": "2.0.5",
86
86
  "@rh-support/user-permissions": "2.5.3",
87
87
  "@rh-support/utils": "2.5.3",
@@ -103,5 +103,5 @@
103
103
  "defaults and supports es6-module",
104
104
  "maintained node versions"
105
105
  ],
106
- "gitHead": "b6a8eed6fd124d98a0da537fc889513e3e533f06"
106
+ "gitHead": "1eeedd5135ac6a9b24533268c5a260d164a3811e"
107
107
  }