loleaflet: Don't enable/disable toolbar items based on permission

For the time being, till we have the editlock, only
enable/disable toolbar items based on it.

Change-Id: I71b5be33e2ec706def198471274df60a22d7ee65
This commit is contained in:
Pranav Kant 2016-05-04 13:40:50 +05:30
parent 92c068541a
commit caa3ea2348

View file

@ -557,15 +557,6 @@ function onFormulaBarBlur() {
map.on('updatepermission', function (e) {
var toolbar = w2ui['toolbar-up'];
formatButtons.forEach(function (id) {
if (e.perm === 'edit') {
toolbar.enable(id);
}
else {
toolbar.disable(id);
}
});
var docType = map.getDocType();
if (docType !== 'text') {
toolbar.hide('writer:menu:file');