Hide template and fileupload buttons for anonymous users
parent
8e1f15e88d
commit
69dd3a60ab
|
@ -98,6 +98,7 @@ define([
|
|||
break;
|
||||
case 'template':
|
||||
if (!AppConfig.enableTemplates) { return; }
|
||||
if (!common.isLoggedIn()) { return; }
|
||||
button = $('<button>', {
|
||||
title: Messages.saveTemplateButton,
|
||||
}).append($('<span>', {'class':'fa fa-bookmark', style: 'font:'+size+' FontAwesome'}));
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue