Skip to content

Commit

Permalink
chore: delete unused code for admin-settings-rbac (argoproj#12312)
Browse files Browse the repository at this point in the history
Signed-off-by: yanggang <gang.yang@daocloud.io>
  • Loading branch information
杨刚 (成都) authored and xiaowu.zhu committed Aug 9, 2023
1 parent 4465e5d commit 0d8c0bc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cmd/argocd/commands/admin/settings_rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,9 @@ func getPolicyFromConfigMap(cm *corev1.ConfigMap) (string, string, string) {
if !ok {
userPolicy = ""
}
if defaultRole == "" {
defaultRole, ok = cm.Data[rbac.ConfigMapPolicyDefaultKey]
if !ok {
defaultRole = ""
}
defaultRole, ok = cm.Data[rbac.ConfigMapPolicyDefaultKey]
if !ok {
defaultRole = ""
}

return userPolicy, defaultRole, cm.Data[rbac.ConfigMapMatchModeKey]
Expand Down

0 comments on commit 0d8c0bc

Please sign in to comment.