Fix bug when creating new group chan
This commit is contained in:
parent
fde2b16db7
commit
1387f56f35
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user