From: Matthias Schmidt Date: Thu, 29 Sep 2016 08:24:08 +0000 (+0200) Subject: Add missing permission checks in media manager X-Git-Tag: 3.0.0_Beta_2~72 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5eb9ad65882e57bbb4113899a82feacf289c9d1b;p=GitHub%2FWoltLab%2FWCF.git Add missing permission checks in media manager --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Base.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Base.js index e34b94c04a..bdea218138 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Base.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Base.js @@ -98,7 +98,9 @@ define( */ _dialogClose: function() { // only show media clipboard if editor is open - Clipboard.hideEditor('com.woltlab.wcf.media'); + if (Permission.get('admin.content.cms.canManageMedia')) { + Clipboard.hideEditor('com.woltlab.wcf.media'); + } }, /** @@ -187,7 +189,9 @@ define( if (!this._mediaManagerMediaList) return; // only show media clipboard if editor is open - Clipboard.showEditor('com.woltlab.wcf.media'); + if (Permission.get('admin.content.cms.canManageMedia')) { + Clipboard.showEditor('com.woltlab.wcf.media'); + } }, /**