function canEditPage(Page $p) { return $this->isAdmin() || $this->data['id'] == $p->getCreatorId(); }
function canEditPage(Page $page) { return $this->isAdmin() || $this->id == $page->getCreatorId(); }