mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Disabled displaying SilverStripe Development Tools header when signed in user go to /dev/build page
This commit is contained in:
parent
1a6655b2e2
commit
c20d5b6861
@ -16,16 +16,15 @@ class DevBuildController extends Controller {
|
||||
$da = DatabaseAdmin::create();
|
||||
return $da->handleRequest($request, $this->model);
|
||||
} else {
|
||||
$renderer = DebugView::create();
|
||||
$renderer->writeHeader();
|
||||
$renderer->writeInfo("Environment Builder", Director::absoluteBaseURL());
|
||||
echo "<div class=\"build\">";
|
||||
if(Director::isDev() || Permission::check("ADMIN")) {
|
||||
$renderer = DebugView::create();
|
||||
$renderer->writeHeader();
|
||||
$renderer->writeInfo("Environment Builder", Director::absoluteBaseURL());
|
||||
echo "<div class=\"build\">";
|
||||
}
|
||||
|
||||
$da = DatabaseAdmin::create();
|
||||
return $da->handleRequest($request, $this->model);
|
||||
|
||||
echo "</div>";
|
||||
$renderer->writeFooter();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user