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 { hasAccess } = useAccess();
|
||||
const isManager = hasAccess("manage-users");
|
||||
const canViewFederationLink = hasAccess("view-realm");
|
||||
|
||||
const {
|
||||
handleSubmit,
|
||||
|
@ -209,7 +210,7 @@ export const UserForm = ({
|
|||
label="requiredUserActions"
|
||||
help="users-help:requiredUserActions"
|
||||
/>
|
||||
{(user?.federationLink || user?.origin) && (
|
||||
{(user?.federationLink || user?.origin) && canViewFederationLink && (
|
||||
<FormGroup
|
||||
label={t("federationLink")}
|
||||
labelIcon={
|
||||
|
|
Loading…
Reference in a new issue