From ad6e46c09a1b09f89d2fd0ab9497c03de2e9c20e Mon Sep 17 00:00:00 2001 From: root Date: Thu, 18 Feb 2021 15:55:45 +0000 Subject: [PATCH] #30 roles for public view of thumbnails --- Plugin.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Plugin.php b/Plugin.php index 6f67e46..56e203b 100644 --- a/Plugin.php +++ b/Plugin.php @@ -4,6 +4,7 @@ use Kanboard\Core\Plugin\Base; use Kanboard\Core\Translator; +use Kanboard\Core\Security\Role; class Plugin extends Base { @@ -24,6 +25,9 @@ public function initialize() //Project $this->template->hook->attach('template:project-overview:images:dropdown', 'coverimage:project_overview/images'); + + //Permissions for public file view + $this->applicationAccessMap->add('FileViewerController', array('thumbnail'), Role::APP_PUBLIC); } public function onStartup()