File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ standard-minifiers # JS/CSS minifiers run for production mode
1616es5-shim # ECMAScript 5 compatibility for older browsers.
1717ecmascript # Enable ECMAScript2015+ syntax in app code
1818
19- insecure # Allow all DB writes from clients (for prototyping)
2019twbs:bootstrap
2120underscore
2221iron:router@1.0.0-rc.1
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ htmljs@1.0.5
3434http@1.1.1
3535ian:accounts-ui-bootstrap-3@1.2.83
3636id-map@1.0.4
37- insecure@1.0.4
3837iron:controller@1.0.12
3938iron:core@1.0.11
4039iron:dynamic-template@1.0.12
Original file line number Diff line number Diff line change 11Posts = new Mongo . Collection ( 'posts' ) ;
2+
3+ Posts . allow ( {
4+ insert : function ( userId , doc ) {
5+ // only allow posting if you are logged in
6+ return ! ! userId ;
7+ }
8+ } ) ;
You can’t perform that action at this time.
0 commit comments