Update UserRow.tsx
This commit is contained in:
parent
ec99859590
commit
947fdf72ed
|
@ -48,8 +48,8 @@ export default ({ subuser }: Props) => {
|
|||
</p>
|
||||
<p css={tw`text-2xs text-neutral-500 uppercase`}>Permissions</p>
|
||||
</div>
|
||||
<Can action={'user.update'}>
|
||||
{subuser.uuid !== uuid &&
|
||||
<Can action={'user.update'}>
|
||||
<button
|
||||
type={'button'}
|
||||
aria-label={'Edit subuser'}
|
||||
|
@ -58,13 +58,13 @@ export default ({ subuser }: Props) => {
|
|||
>
|
||||
<FontAwesomeIcon icon={faPencilAlt}/>
|
||||
</button>
|
||||
}
|
||||
</Can>
|
||||
<Can action={'user.delete'}>
|
||||
}
|
||||
{subuser.uuid !== uuid &&
|
||||
<Can action={'user.delete'}>
|
||||
<RemoveSubuserButton subuser={subuser}/>
|
||||
}
|
||||
</Can>
|
||||
}
|
||||
</GreyRowBox>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue