Skip to content

Commit c574c23

Browse files
committed
fix(ui): Enable access to proxy config to project admin
Signed-off-by: vg006 <[email protected]>
1 parent b0fb771 commit c574c23

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/portal/src/app/base/project/project-config/project-policy-config/project-policy-config.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
{{ 'PROJECT_CONFIG.PUBLIC_POLICY' | translate }}
1717
</clr-control-helper>
1818
</clr-checkbox-container>
19-
<clr-checkbox-container *ngIf="isSystemAdmin" clrInline>
19+
<clr-checkbox-container *ngIf="hasChangeConfigRole" clrInline>
2020
<label class="label-color-input">
2121
{{ 'PROJECT.PROXY_CACHE' | translate }}
2222
</label>
@@ -33,7 +33,7 @@
3333
</clr-control-helper>
3434
</clr-checkbox-container>
3535
<div
36-
*ngIf="isSystemAdmin && projectPolicy.ProxyCacheEnabled"
36+
*ngIf="hasChangeConfigRole && projectPolicy.ProxyCacheEnabled"
3737
class="clr-form-control mt-0">
3838
<label class="clr-control-label"></label>
3939
<div class="clr-select-wrapper row-inline">

src/portal/src/app/base/project/project-config/project-policy-config/project-policy-config.component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,7 @@ export class ProjectPolicyConfigComponent implements OnInit {
299299
.subscribe(permissins => {
300300
this.hasChangeConfigRole = permissins as boolean;
301301
this.allowUpdateProxyCacheConfiguration =
302-
this.isSystemAdmin &&
303-
this.hasChangeConfigRole &&
304-
!this.isProxyCacheProject;
302+
this.hasChangeConfigRole && !this.isProxyCacheProject;
305303
});
306304
}
307305

0 commit comments

Comments
 (0)