Hide template and fileupload buttons for anonymous users
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user