fix approvals flow
This commit is contained in:
parent
3f7eedb5f2
commit
58372ca195
@ -170,12 +170,6 @@ func (h *AdminApprovalFlowHandler) ListApprovalFlows(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
appCtx := appcontext.FromGinContext(c.Request.Context())
|
|
||||||
|
|
||||||
if !appCtx.IsSuperAdmin() {
|
|
||||||
departmentID = &appCtx.DepartmentID
|
|
||||||
}
|
|
||||||
|
|
||||||
var isActive *bool
|
var isActive *bool
|
||||||
if isActiveStr := c.Query("is_active"); isActiveStr != "" {
|
if isActiveStr := c.Query("is_active"); isActiveStr != "" {
|
||||||
if active, err := strconv.ParseBool(isActiveStr); err == nil {
|
if active, err := strconv.ParseBool(isActiveStr); err == nil {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user