Permalink
Browse files

ENHANCEMENT: Do not display SilverStripeNavigator_CMSLink when in a L…

…eftAndMain extension not just CMSMain extensions
  • Loading branch information...
1 parent 74a4493 commit 119d8aa8924b3eff7c274fc630216b7be1f552ba @UndefinedOffset UndefinedOffset committed Feb 1, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 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);
}
}

0 comments on commit 119d8aa

Please sign in to comment.