Skip to content

Commit

Permalink
inheriting Slot::canEdit() in Element::canEdit()
Browse files Browse the repository at this point in the history
  • Loading branch information
icecaster committed Jan 24, 2011
1 parent 00a2638 commit ea5403f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ function canPublish() {


function canEdit() {
if($gp = $this->Slot()->GridPage()) {
return $gp->canEdit();
if($slot = $this->Slot()) {
return $slot->canEdit();
}
return false;
}
Expand Down

0 comments on commit ea5403f

Please sign in to comment.