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