Fixed disabled Create User button if policy has no resource (#3231)

Co-authored-by: Jillian Inapurapu <jillii@Jillians-MBP.attlocal.net>
Co-authored-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
This commit is contained in:
jinapurapu
2024-02-12 09:54:32 -08:00
committed by GitHub
parent 52137ba9e5
commit f394cb69ce

View File

@@ -279,7 +279,7 @@ const ListUsers = () => {
<TooltipWrapper
tooltip={
hasPermission(
"console",
"console-ui",
[
IAM_SCOPES.ADMIN_CREATE_USER,
IAM_SCOPES.ADMIN_LIST_USER_POLICIES,
@@ -310,7 +310,7 @@ const ListUsers = () => {
variant={"callAction"}
disabled={
!hasPermission(
"console",
"console-ui",
[
IAM_SCOPES.ADMIN_CREATE_USER,
IAM_SCOPES.ADMIN_LIST_USER_POLICIES,