protected function getForm()
 {
     if (!$this->isPageAssignedToProject()) {
         throw new ErrorPageError('ar-approvalform-generalerror', 'ar-approvalform-pageunassigned');
     }
     if (!$this->userCanApprovePage()) {
         throw new ErrorPageError('ar-approvalform-badaccess', 'ar-approvalform-badaccess-group', ApprovedRevs::getGroupName($this->getTitle()));
     }
     if (ApprovedRevs::isLatestRevisionApproved($this->getTitle())) {
         throw new ErrorPageError('ar-approvalform-generalerror', 'ar-approvalform-alreadyapproved', ApprovedRevs::getGroupName($this->getTitle()));
     }
     return parent::getForm();
 }