Hide template and fileupload buttons for anonymous users

This commit is contained in:
yflory
2017-10-12 14:32:12 +02:00
parent 8e1f15e88d
commit 69dd3a60ab
2 changed files with 2 additions and 1 deletions

View File

@@ -109,7 +109,7 @@ define([
});
//If file, display the upload button
if (types.indexOf('file') !== -1) {
if (types.indexOf('file') !== -1 && common.isLoggedIn()) {
$filter.append(common.createButton('upload', false, data));
}