Skip to content

Commit

Permalink
Update message on security access to features based on ability to man…
Browse files Browse the repository at this point in the history
…age roles
  • Loading branch information
tsullivan committed Sep 17, 2024
1 parent ebe0c6a commit a1e533e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface Props {

export const EditSpaceEnabledFeatures: FC<Props> = ({ features, space, onChange }) => {
const { capabilities, getUrlForApp } = useEditSpaceServices();
const canManageRoles = capabilities.management?.security?.roles === true;
const canManageRoles = capabilities.roles?.save === true;

if (!features) {
return null;
Expand Down Expand Up @@ -59,8 +59,8 @@ export const EditSpaceEnabledFeatures: FC<Props> = ({ features, space, onChange
</EuiLink>
) : (
<FormattedMessage
id="xpack.spaces.management.editSpaceFeatures.manageRolesLinkText"
defaultMessage="manage security roles"
id="xpack.spaces.management.editSpaceFeatures.askAnAdministratorText"
defaultMessage="ask an administrator to manage roles"
/>
),
}}
Expand Down

0 comments on commit a1e533e

Please sign in to comment.