Merge pull request #4918 from mejt/3

Disabled displaying SilverStripe Development Tools header when signed in user go to /dev/build page
This commit is contained in:
Damian Mooyman 2016-01-14 10:14:38 +13:00
commit 35bb3a4801

View File

@ -33,7 +33,7 @@ class DevelopmentAdmin extends Controller {
parent::init();
// Special case for dev/build: Defer permission checks to DatabaseAdmin->init() (see #4957)
$requestedDevBuild = (stripos($this->getRequest()->getURL(), 'dev/build') === 0);
$requestedDevBuild = (stripos($this->getRequest()->getURL(), 'dev/build') === 0 && !Security::database_is_ready());
// We allow access to this controller regardless of live-status or ADMIN permission only
// if on CLI. Access to this controller is always allowed in "dev-mode", or of the user is ADMIN.