Disable oo import for anonymous users

This commit is contained in:
yflory 2020-05-29 15:29:24 +02:00
parent 649d744d81
commit 2ff5acdbd1
1 changed files with 5 additions and 5 deletions

View File

@ -1606,13 +1606,13 @@ define([
if (typeof(Atomics) === "undefined") {
accept = ['.bin'];
}
var $importXLSX = common.createButton('import', true, {
accept: accept,
binary : ["ods", "xlsx", "odt", "docx", "odp", "pptx"]
}, importXLSXFile);
$importXLSX.appendTo(toolbar.$drawer);
if (common.isLoggedIn()) {
var $importXLSX = common.createButton('import', true, {
accept: accept,
binary : ["ods", "xlsx", "odt", "docx", "odp", "pptx"]
}, importXLSXFile);
$importXLSX.appendTo(toolbar.$drawer);
common.createButton('hashtag', true).appendTo(toolbar.$drawer);
}