Skip to content

Commit

Permalink
#30 roles for public view of thumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
creecros committed Feb 18, 2021
1 parent c638ea3 commit ad6e46c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Kanboard\Core\Plugin\Base;
use Kanboard\Core\Translator;
use Kanboard\Core\Security\Role;

class Plugin extends Base
{
Expand All @@ -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()
Expand Down

0 comments on commit ad6e46c

Please sign in to comment.