permissions didn't initialize at app start

This commit is contained in:
Maxim Kadushkin 2016-09-06 14:46:15 +03:00
parent 4549b770ab
commit 664ea58e1e

View file

@ -104,6 +104,8 @@ Ext.define('DE.controller.Main', {
}, },
loadDocument: function(data) { loadDocument: function(data) {
this.permissions = {};
if ( data.doc ) { if ( data.doc ) {
this.permissions = data.doc.permissions; this.permissions = data.doc.permissions;