MM-12488: Accepts parameters to search and filter LDAP groups. (#10418)

Этот коммит содержится в:
Martin Kraft
2019-03-14 15:43:52 -04:00
коммит произвёл GitHub
родитель e94faea383
Коммит 5dbf8aec7d
5 изменённых файлов: 33 добавлений и 4 удалений

Просмотреть файл

@@ -68,7 +68,17 @@ func getLdapGroups(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
groups, total, err := c.App.GetAllLdapGroupsPage(c.Params.Page, c.Params.PerPage)
opts := model.GroupSearchOpts{
Q: c.Params.Q,
}
if c.Params.IsLinked != nil {
opts.IsLinked = c.Params.IsLinked
}
if c.Params.IsConfigured != nil {
opts.IsConfigured = c.Params.IsConfigured
}
groups, total, err := c.App.GetAllLdapGroupsPage(c.Params.Page, c.Params.PerPage, opts)
if err != nil {
c.Err = err
return