Skip to content

Commit

Permalink
Calculation model - fixed seller propery filling when user is guest
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Apr 5, 2016
1 parent 31a7709 commit 0111b05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/Calculation.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static function primaryKey()
public function init()
{
if (Yii::$app->user->isGuest) {
$this->seller = Yii::$app->user->seller;
$this->seller = Yii::$app->user->identity->seller;
} else {
$this->client = Yii::$app->user->identity->username;
}
Expand Down

0 comments on commit 0111b05

Please sign in to comment.