3
0

upd(messaging): remove unneeded check

This commit is contained in:
Mitja Zivkovic
2019-03-10 09:44:56 +01:00
committed by Denis Arh
parent ab39783e50
commit ddc47af582

View File

@@ -223,10 +223,6 @@ func (svc *channel) Create(in *types.Channel) (out *types.Channel, err error) {
}
}
if in.Topic != "" && false {
return errors.New("Not allowed to set channel topic")
}
if in.Type == types.ChannelTypePublic && !svc.prm.CanCreatePublicChannel() {
return errors.New("Not allowed to create public channels")
}