aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-11-13 12:47:54 +0100
committerAlex Auvolat <alex@adnab.me>2020-11-13 12:47:54 +0100
commit4367e4a232938b03fb371ae2ee854458a5802fda (patch)
tree9a1ac73cbe97b8b94e80f71524330032575bcc27
parentf43934a7b9094ed506f3b50b6b1ea5c4e1b54508 (diff)
downloadbottin-4367e4a232938b03fb371ae2ee854458a5802fda.tar.gz
bottin-4367e4a232938b03fb371ae2ee854458a5802fda.zip
Fix horrible, horrible bug
-rw-r--r--memberof.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/memberof.go b/memberof.go
index 5bc7a26..cd0686a 100644
--- a/memberof.go
+++ b/memberof.go
@@ -43,7 +43,7 @@ func (server *Server) memberOfRemove(member string, group string) {
newMemberOf := []string{}
for _, mb := range memberOf {
if mb != group {
- newMemberOf = append(newMemberOf, group)
+ newMemberOf = append(newMemberOf, mb)
}
}