]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/transaction_handlers.go
Add comment clarifying usage of NewsDateFormat config option
[rbdr/mobius] / hotline / transaction_handlers.go
index 56f7afa0d90f1f1c24f5ff81a08fc341420184f7..5a9ea5ef40400ae19dbbe427420d010555c72adb 100644 (file)
@@ -1293,7 +1293,7 @@ func HandleDelNewsItem(cc *ClientConn, t *Transaction) (res []Transaction, err e
                }
        }
 
-       if bytes.Compare(cats[delName].Type, []byte{0, 3}) == 0 {
+       if bytes.Equal(cats[delName].Type, []byte{0, 3}) {
                if !cc.Authorize(accessNewsDeleteCat) {
                        return append(res, cc.NewErrReply(t, "You are not allowed to delete news categories.")), nil
                }