Permalink
Browse files

Merge pull request #283 from UndefinedOffset/3.0

ENHANCEMENT: Hide SilverStripeNavigator_CMSLink when in a LeftAndMain extension not just CMSMain extensions
  • Loading branch information...
2 parents 74a4493 + 119d8aa commit 4269f94126f75f6ee140f57ec18a2ca55d5bbfa3 @chillu chillu committed Feb 2, 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 4269f94

Please sign in to comment.