ch branches
This commit is contained in:
@@ -70,11 +70,6 @@ func (h *handler) list(c *gin.Context) {
|
||||
c.JSON(http.StatusInternalServerError, appresult.ErrInternalServer)
|
||||
return
|
||||
}
|
||||
if !rbac.HasAllScope(c) {
|
||||
for i := range result.Branches {
|
||||
clearBranchSecrets(&result.Branches[i])
|
||||
}
|
||||
}
|
||||
|
||||
c.JSON(http.StatusOK, appresult.SuccessWithData(result))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user