Commit 0e19c7f0d420584bba9ba2262af9f6975fb2e3ed

Authored by Yarik
1 parent 33e19766

Remove guest comment

frontend/views/company/blog-view.php
... ... @@ -43,7 +43,7 @@
43 43 'class_options' => [
44 44 'scenario' => is_int(\Yii::$app->user->getId()) ? \common\modules\comment\models\Comment::SCENARIO_USER : \common\modules\comment\models\Comment::SCENARIO_GUEST,
45 45 'user_id' => \Yii::$app->user->getId(),
46   - 'guestComment' => true,
  46 + 'guestComment' => false,
47 47 'status' => \common\modules\comment\models\Comment::STATUS_ACTIVE,
48 48 ],
49 49 'list_options' => [
... ...
frontend/views/company/portfolio-view.php
... ... @@ -207,7 +207,7 @@
207 207 'class_options' => [
208 208 'scenario' => is_int(\Yii::$app->user->getId()) ? \common\modules\comment\models\Comment::SCENARIO_USER : \common\modules\comment\models\Comment::SCENARIO_GUEST,
209 209 'user_id' => \Yii::$app->user->getId(),
210   - 'guestComment' => true,
  210 + 'guestComment' => false,
211 211 'status' => \common\modules\comment\models\Comment::STATUS_ACTIVE,
212 212 ],
213 213 'list_options' => [
... ...
frontend/views/performer/blog-view.php
... ... @@ -59,7 +59,7 @@
59 59 'class_options' => [
60 60 'scenario' => is_int(\Yii::$app->user->getId()) ? \common\modules\comment\models\Comment::SCENARIO_USER : \common\modules\comment\models\Comment::SCENARIO_GUEST,
61 61 'user_id' => \Yii::$app->user->getId(),
62   - 'guestComment' => true,
  62 + 'guestComment' => false,
63 63 'status' => \common\modules\comment\models\Comment::STATUS_ACTIVE,
64 64 ],
65 65 'list_options' => [
... ...
frontend/views/performer/portfolio-view.php
... ... @@ -213,7 +213,7 @@
213 213 'class_options' => [
214 214 'scenario' => is_int(\Yii::$app->user->getId()) ? \common\modules\comment\models\Comment::SCENARIO_USER : \common\modules\comment\models\Comment::SCENARIO_GUEST,
215 215 'user_id' => \Yii::$app->user->getId(),
216   - 'guestComment' => true,
  216 + 'guestComment' => false,
217 217 'status' => \common\modules\comment\models\Comment::STATUS_ACTIVE,
218 218 ],
219 219 'list_options' => [
... ...