mirror of
https://github.com/jonom/silverstripe-betternavigator.git
synced 2024-10-22 14:05:51 +02:00
Converted to PSR-2
This commit is contained in:
parent
4f92851547
commit
f2831766e6
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
class BetterNavigator extends DataExtension {
|
||||
class BetterNavigator extends DataExtension
|
||||
{
|
||||
|
||||
/**
|
||||
* Nominate developers who can access developer tools on live site
|
||||
@ -22,7 +23,8 @@ class BetterNavigator extends DataExtension {
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function BetterNavigator() {
|
||||
public function BetterNavigator()
|
||||
{
|
||||
$isDev = Director::isDev();
|
||||
|
||||
if ($isDev || Permission::check('CMS_ACCESS_CMSMain') || Permission::check('VIEW_DRAFT_CONTENT')) {
|
||||
|
Loading…
Reference in New Issue
Block a user