Exemplo n.º 1
0
 private function sanitize()
 {
     if (false === ($this->pm = GWF_PM::getByID(Common::getGet('pmid')))) {
         return $this->module->error('err_pm');
     }
     if ($this->pm->isRead()) {
         return $this->module->error('err_pm_read');
     }
     if (false === $this->pm->canEdit(GWF_Session::getUser())) {
         return $this->module->error('err_perm_write');
     }
     return false;
 }