File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
src/portal/src/app/base/project/project-config/project-policy-config Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 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 >
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 ">
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments