Merge pull request #709 from hashicorp/fix-user-delete

fix: 🐛 delete user capability
This commit is contained in:
Dharini Jeeva authored and GitHub committed 2021-08-18 16:14:40 -07:00
commit 22156bdead
1 file changed
+11 -11
@@ -1,12 +1,12 @@
{{#if (can 'delete model' @model)}}
<Rose::Dropdown
@text='{{t 'actions.manage'}}'
@dropdownRight={{true}}
as |dropdown|
>
<dropdown.link @route='scopes.scope.users.user.add-accounts'>
{{t 'resources.user.actions.add-accounts'}}
</dropdown.link>
<Rose::Dropdown
@text='{{t 'actions.manage'}}'
@dropdownRight={{true}}
as |dropdown|
>
<dropdown.link @route='scopes.scope.users.user.add-accounts'>
{{t 'resources.user.actions.add-accounts'}}
</dropdown.link>
{{#if (can 'delete model' @model)}}
<dropdown.separator />
<dropdown.button
@style='danger'
@@ -15,5 +15,5 @@
>
{{t 'resources.user.actions.delete'}}
</dropdown.button>
</Rose::Dropdown>
{{/if}}
{{/if}}
</Rose::Dropdown>