Template.canvas.onCreated(function () {
  this.subscribe("workspace", Meteor.userId());
  this.subscribe("organisation", Meteor.userId());
  this.subscribe("boards", Meteor.userId());
  this.subscribe("users", Meteor.userId());
});
Template.canvas.helpers({
	currentBoard: function () {
		var user = Meteor.user();
		return user && user.currentBoard;
	},
	currentWorkspace: function() {
		var user = Meteor.user();
		return user && user.currentWorkspace;
	},
	workspaceName: function() {
		return  Workspace.findOne({_id: Meteor.user().currentWorkspace}).title;	
	}
});