Beispiel #1
0
 private function getOrg($req, $res)
 {
     $org = Organization::findOne(['where' => ['username' => $req->params('username')]]);
     if (!$org) {
         $res->setCode(404);
         return false;
     }
     return $org;
 }