Exemplo n.º 1
0
 protected function checkUserRelation($recipient)
 {
     $initiator = Yii::$app->user->identity;
     $recipient = $this->checkUser($recipient);
     if (!Follow::findOneRelation($initiator, $recipient)) {
         throw new NotFoundHttpException('Follow Not Found.');
     }
     return true;
 }