diff --git a/README.md b/README.md index b6e9e7a..1a0dbfa 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ Simple SilverStripe module to trigger a dev/build via ajax in the CMS. This will allow you to close that extra tab that we all keep open just for dev/build. +[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/mediabeastnz/silverstripe-fancy-devbuild/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/mediabeastnz/silverstripe-fancy-devbuild/?branch=master) + ## Installation Composer is the recommended way of installing SilverStripe modules. ``` diff --git a/code/DevTasks.php b/code/DevTasks.php index 383b637..19cb599 100644 --- a/code/DevTasks.php +++ b/code/DevTasks.php @@ -13,7 +13,9 @@ public function init() { parent::init(); - if (!Permission::check("VIEW_DEVTASKS")) return; + if (!Permission::check("VIEW_DEVTASKS")) { + return; + } $tasks = array( 'devbuild' => array(