Remove tag and filepicker buttons for anon users
This commit is contained in:
1 parent
c18d4297e1
commit
d666e9e7ee
5 files changed
+58
-47
No files matched your search
@@ -342,6 +342,7 @@ define([
|
||||
};
|
||||
|
||||
var createFilePicker = function () {
|
||||
if (!common.isLoggedIn()) { return; }
|
||||
common.initFilePicker({
|
||||
onSelect: function (data) {
|
||||
if (data.type !== 'file') {
|
||||
@@ -369,6 +370,7 @@ define([
|
||||
}).appendTo(toolbar.$rightside).hide();
|
||||
};
|
||||
var setMediaTagEmbedder = function (mte) {
|
||||
if (!common.isLoggedIn()) { return; }
|
||||
if (!mte || readOnly) {
|
||||
$embedButton.hide();
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user