Permalink
Browse files

MINOR Removing class comparison in SiteTree->canCreate() (mainly in o…

…rder to enable overloading via SiteTreeSubsite->canCreate())
  • Loading branch information...
1 parent 4903fad commit 45f857e042ef1655794d18882e6488da28bb73f3 @chillu chillu committed Aug 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/model/SiteTree.php
View
2 code/model/SiteTree.php
@@ -2302,7 +2302,7 @@ protected function getClassDropdown() {
$result = array();
foreach($classes as $class) {
$instance = singleton($class);
- if((($instance instanceof HiddenClass) || !$instance->canCreate()) && ($class != $this->class)) continue;
+ if((($instance instanceof HiddenClass) || !$instance->canCreate())) continue;
if($perms = $instance->stat('need_permission')) {
if(!$this->can($perms)) continue;

0 comments on commit 45f857e

Please sign in to comment.