Implement message for locked groups.

This commit is contained in:
Juliusz Chroboczek
2020-09-18 11:40:00 +02:00
parent e824b93584
commit f8ae908d7a
5 changed files with 25 additions and 11 deletions
+1 -1
View File
@@ -1008,7 +1008,7 @@ func handleClientMessage(c *webClient, m clientMessage) error {
if !c.permissions.Op {
return c.error(group.UserError("not authorised"))
}
c.group.SetLocked(m.Kind == "lock")
c.group.SetLocked(m.Kind == "lock", m.Value)
case "record":
if !c.permissions.Record {
return c.error(group.UserError("not authorised"))