Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ENHANCEMENT: Do not display SilverStripeNavigator_CMSLink when in a L…

…eftAndMain extension not just CMSMain extensions
  • Loading branch information...
commit 119d8aa8924b3eff7c274fc630216b7be1f552ba 1 parent 74a4493
@UndefinedOffset UndefinedOffset authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 code/controllers/SilverStripeNavigator.php
View
4 code/controllers/SilverStripeNavigator.php
@@ -196,12 +196,12 @@ public function getLink() {
}
public function isActive() {
- return (Controller::curr() instanceof CMSMain);
+ return (Controller::curr() instanceof LeftAndMain);
}
public function canView($member = null) {
// Don't show in CMS
- return !(Controller::curr() instanceof CMSMain);
+ return !(Controller::curr() instanceof LeftAndMain);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.