From 9400fc8218f0616a0fe844b4d6ad3043a48ab7e4 Mon Sep 17 00:00:00 2001 From: Tobias Hintze Date: Wed, 7 Aug 2013 13:04:42 +0200 Subject: [PATCH] pass session id to webodf --- js/office.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/office.js b/js/office.js index fa8586ac..4c0b58e4 100644 --- a/js/office.js +++ b/js/office.js @@ -63,12 +63,13 @@ var officeMain = { // in case we are on the public sharing page we shall display the odf into the preview tag $('#preview').html(canvashtml); + runtime.assert(response.es_id, "invalid session id."); webodfEditor.boot( { collaborative: "owncloud", docUrl: doclocation, loginProcedure: function(cb) { - cb("0", OC.currentUser, "token"); + cb(response.es_id, OC.currentUser, "token"); }, callback: function() { // initialized.