Meteor.publish('categories', function (text) {
    return Categories.find({
        $or: [
            {name: { $regex: text }},
            {description: { $regex: text }}
        ]
    });
});

Categories.allow({
    insert: function(userId, doc){
        return true;
    },
    update:  function(userId, doc, fieldNames, modifier){
        return false;
    },
    remove:  function(userId, doc){
        return true;
    }
});

Categories.deny({
    insert: function (userId, doc) {
        return (typeof doc.name === 'undefined' || doc.name.length < 3);
    }
});
@@ -233,32 +233,33 @@
 ion(userId, doc)
+ 
 %7B%0A        return
@@ -328,16 +328,17 @@
 odifier)
+ 
 %7B%0A      
@@ -394,16 +394,17 @@
 Id, doc)
+ 
 %7B%0A      

Add space between brackets