fix comment

Signed-off-by: runzexia <runzexia@yunify.com>
This commit is contained in:
runzexia
2019-09-02 12:58:47 +08:00
parent 93db1f982e
commit 003bba5b62
3 changed files with 3 additions and 5 deletions

View File

@@ -113,9 +113,7 @@ func GetDevOpsProjectsCount(username string) (uint32, error) {
From(devops.DevOpsProjectTableName)
var sqconditions []dbr.Builder
switch username {
case devops.KS_ADMIN:
default:
if username != devops.KS_ADMIN {
onCondition := fmt.Sprintf("%s = %s", devops.DevOpsProjectMembershipProjectIdColumn, devops.DevOpsProjectIdColumn)
query.Join(devops.DevOpsProjectMembershipTableName, onCondition)
sqconditions = append(sqconditions, db.Eq(devops.DevOpsProjectMembershipUsernameColumn, username))