3
0

Fix bug when creating new group chan

This commit is contained in:
Denis Arh 2018-12-02 07:39:53 +01:00
parent fde2b16db7
commit 1387f56f35

View File

@ -213,7 +213,7 @@ func (svc *channel) Create(in *types.Channel) (out *types.Channel, err error) {
} else if out != nil && out.CanObserve {
// Group already exists so let's just return it
return nil
} else if !out.CanObserve {
} else if out != nil && !out.CanObserve {
return errors.New("Not allowed to create this channel due to permission settings")
}
}