Permalink
Browse files

Removed insecure, and allowed certain writes to posts.

chapter7-2
  • Loading branch information...
tmeasday committed Oct 13, 2014
1 parent f76d91a commit 3140d32eb1cfa1cbca28a84ef3626b7d93cca569
Showing with 7 additions and 2 deletions.
  1. +0 −1 .meteor/packages
  2. +0 −1 .meteor/versions
  3. +7 −0 lib/collections/posts.js
View
@@ -16,7 +16,6 @@ standard-minifiers # JS/CSS minifiers run for production mode
es5-shim # ECMAScript 5 compatibility for older browsers.
ecmascript # Enable ECMAScript2015+ syntax in app code
insecure # Allow all DB writes from clients (for prototyping)
twbs:bootstrap
underscore
iron:router@1.0.0-rc.1
View
@@ -34,7 +34,6 @@ htmljs@1.0.5
http@1.1.1
ian:accounts-ui-bootstrap-3@1.2.83
id-map@1.0.4
insecure@1.0.4
iron:controller@1.0.12
iron:core@1.0.11
iron:dynamic-template@1.0.12
View
@@ -1 +1,8 @@
Posts = new Mongo.Collection('posts');
Posts.allow({

This comment has been minimized.

Show comment
Hide comment
@vedvrat13

vedvrat13 Feb 12, 2016

Where this particular snippet is running?
After trying Meteor.isClient and Meteor.isServer,looks like its running only on server.

Please help me understand, Thanks?

@vedvrat13

vedvrat13 Feb 12, 2016

Where this particular snippet is running?
After trying Meteor.isClient and Meteor.isServer,looks like its running only on server.

Please help me understand, Thanks?

insert: function(userId, doc) {
// only allow posting if you are logged in
return !! userId;
}
});

0 comments on commit 3140d32

Please sign in to comment.