diff --git a/client/app.js b/client/app.js
index 6deaf26e8..899768915 100644
--- a/client/app.js
+++ b/client/app.js
@@ -1,7 +1,4 @@
-Meteor.subscribe('users', function(){
- // once we've subscribed, set a session variable to check if the current user is an admin
- Session.set('currentUserIsAdmin', (Meteor.user() && !Meteor.user().loading) ? isAdmin(Meteor.user()) : false );
-});
+Meteor.subscribe('users');
Posts = new Meteor.Collection('posts');
Meteor.subscribe('posts');
@@ -15,10 +12,10 @@ Meteor.subscribe('comments', function() {
Settings = new Meteor.Collection('settings');
Meteor.subscribe('settings', function(){
- if(proxinoKey=getSetting('proxinoKey')){
+ if((proxinoKey=getSetting('proxinoKey'))){
Proxino.key = proxinoKey;
Proxino.track_errors();
- }
+ }
});
Session.set('state', 'list');
diff --git a/client/templates/comment_form.html b/client/templates/comment_form.html
index 929cdbbf0..4ec82dd96 100644
--- a/client/templates/comment_form.html
+++ b/client/templates/comment_form.html
@@ -1,16 +1,14 @@
-{{#if show_comment_form}}
-
+
diff --git a/client/templates/comment_form.js b/client/templates/comment_form.js
index 99a52ede4..ea2e6030d 100644
--- a/client/templates/comment_form.js
+++ b/client/templates/comment_form.js
@@ -1,9 +1,3 @@
-Template.comment_form.helpers({
- show_comment_form: function(){
- return Meteor.user() !== null;
- }
-});
-
Template.comment_form.rendered = function(){
if(Meteor.user() && !this.editor){
this.editor = new EpicEditor(EpicEditorOptions).load();
@@ -35,4 +29,3 @@ Template.comment_form.events = {
}
};
-
diff --git a/client/templates/comment_item.html b/client/templates/comment_item.html
index 7f40946dc..8a54950ca 100644
--- a/client/templates/comment_item.html
+++ b/client/templates/comment_item.html
@@ -1,6 +1,6 @@
{{> comment_item}}
{{/with}} - {{> comment_form}} + {{/if}} + + {{#if currentUser}} + {{> comment_form}} + {{/if}}