Hide group to users
This commit is contained in:
parent
5130b2d38e
commit
c5e45ccf51
2 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue