Hide group to users

This commit is contained in:
nemunaire 2022-07-09 20:52:22 +02:00
commit c5e45ccf51
2 changed files with 3 additions and 0 deletions

View file

@ -32,6 +32,7 @@ func init() {
var response []Survey
for _, s := range surveys {
if s.Group == "" || strings.Contains(u.Groups, ","+s.Group+",") {
s.Group = ""
response = append(response, s)
}
}