parent
dffa7a31cb
commit
2dec99c443
1 changed files with 2 additions and 1 deletions
|
@ -97,6 +97,7 @@ export const UserForm = ({
|
||||||
const { addAlert, addError } = useAlerts();
|
const { addAlert, addError } = useAlerts();
|
||||||
const { hasAccess } = useAccess();
|
const { hasAccess } = useAccess();
|
||||||
const isManager = hasAccess("manage-users");
|
const isManager = hasAccess("manage-users");
|
||||||
|
const canViewFederationLink = hasAccess("view-realm");
|
||||||
|
|
||||||
const {
|
const {
|
||||||
handleSubmit,
|
handleSubmit,
|
||||||
|
@ -209,7 +210,7 @@ export const UserForm = ({
|
||||||
label="requiredUserActions"
|
label="requiredUserActions"
|
||||||
help="users-help:requiredUserActions"
|
help="users-help:requiredUserActions"
|
||||||
/>
|
/>
|
||||||
{(user?.federationLink || user?.origin) && (
|
{(user?.federationLink || user?.origin) && canViewFederationLink && (
|
||||||
<FormGroup
|
<FormGroup
|
||||||
label={t("federationLink")}
|
label={t("federationLink")}
|
||||||
labelIcon={
|
labelIcon={
|
||||||
|
|
Loading…
Reference in a new issue