/** * This checks if a user is page owner. * @param GWF_User $user * @return boolean */ public function isOwner(GWF_User $user) { return $user->isUser() ? $user->getID() === $this->getVar('page_author') : false; }