Commit 0e19c7f0d420584bba9ba2262af9f6975fb2e3ed

Authored by Yarik
1 parent 33e19766

Remove guest comment

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