Skip to content

Commit

Permalink
bugfix:清理设置前端权限缺失 TencentBlueKing#1730
Browse files Browse the repository at this point in the history
  • Loading branch information
lannoy0523 authored Jan 29, 2024
1 parent be69a64 commit 425d90c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
return ['maven', 'pypi', 'npm', 'composer', 'nuget'].includes(this.repoType)
},
showCleanConfigTab () {
return ['docker', 'generic', 'helm'].includes(this.repoType)
return ['docker', 'generic', 'helm'].includes(this.repoType) && (this.userInfo.admin || this.userInfo.manage)
},
showPermissionConfigTab () {
return ['generic'].includes(this.repoType) && (this.userInfo.admin || this.userInfo.manage) && !(['pipeline', 'custom'].includes(this.repoName))
Expand Down

0 comments on commit 425d90c

Please sign in to comment.