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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user