Skip to content

Commit

Permalink
ability to attach policies to users
Browse files Browse the repository at this point in the history
  • Loading branch information
roncodes committed Aug 18, 2024
1 parent 25f2aa0 commit 9c5bdea
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions addon/components/modals/user-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@
</InputGroup>
</div>
{{#if (can @options.formPermission)}}
<div>
<InputGroup @name={{t "iam.common.select-permissions"}}>
<PermissionPicker @selected={{@options.user.permissions}} @onChange={{fn (mut @options.user.permissions)}} />
</InputGroup>
</div>
<InputGroup @name={{t "iam.common.attach-policies"}}>
<PolicyAttacher @onChange={{fn (mut @options.user.policies)}} @value={{@options.user.policies}} @disabled={{cannot @options.formPermission}} />
</InputGroup>
<InputGroup @name={{t "iam.common.select-permissions"}}>
<PermissionPicker @selected={{@options.user.permissions}} @onChange={{fn (mut @options.user.permissions)}} />
</InputGroup>
{{/if}}
</div>
</div>
Expand Down

0 comments on commit 9c5bdea

Please sign in to comment.