Skip to content

Commit

Permalink
iam added on roles tab
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul-Az <aazeez@progress.com>
  • Loading branch information
iamazzeez authored and kalroy committed Apr 28, 2022
1 parent 103f703 commit e6e7ec1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions api/external/infra_proxy/infra_proxy.proto
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ service InfraProxy {
option (google.api.http).post = "/api/v0/infra/servers/{server_id}/orgs/{org_id}/roles";
option (google.api.http).body = "*";
option (chef.automate.api.iam.policy).resource = "infra:infraServers:{server_id}:orgs:{org_id}:roles";
option (chef.automate.api.iam.policy).action = "infra:infraServers:update";
option (chef.automate.api.iam.policy).action = "infra:infraServersOrgsRoles:update";
};
rpc DeleteRole (infra_proxy.request.Role) returns (infra_proxy.response.Role) {
option (google.api.http).delete = "/api/v0/infra/servers/{server_id}/orgs/{org_id}/roles/{name}";
option (chef.automate.api.iam.policy).resource = "infra:infraServers:{server_id}:orgs:{org_id}:roles";
option (chef.automate.api.iam.policy).action = "infra:infraServers:update";
option (chef.automate.api.iam.policy).action = "infra:infraServersOrgsRoles:delete";
};
rpc UpdateRole (infra_proxy.request.UpdateRole) returns (infra_proxy.response.Role) {
option (google.api.http).put = "/api/v0/infra/servers/{server_id}/orgs/{org_id}/roles/{name}";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@
[pageIndex]= "currentPage"
(changePage)= "onUpdatePage($event)"
></app-paginator>
<chef-button
id="role-create"
primary
(click)="openCreateModal()"
data-cy="create-role-button">
Create Role
</chef-button>
<app-authorized [allOf]="['/api/v0/infra/servers/{server_id}/orgs/{org_id}/roles', 'post', [serverId, orgId]]">
<chef-button
id="role-create"
primary
(click)="openCreateModal()"
data-cy="create-role-button">
Create Role
</chef-button>
</app-authorized>
</div>
<chef-loading-spinner
class="full-screen-spinner"
Expand Down Expand Up @@ -83,7 +85,6 @@
</chef-tbody>
</chef-table>
</div>

<app-page-picker
*ngIf="!loading"
class="roles-list-paging"
Expand Down

0 comments on commit e6e7ec1

Please sign in to comment.