Skip to content

Commit

Permalink
Restored isCurrent check on Tenant
Browse files Browse the repository at this point in the history
  • Loading branch information
masterix21 authored Aug 24, 2020
1 parent e191a86 commit 85c4e5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Models/Tenant.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ class Tenant extends Model

public function makeCurrent(): self
{
if ($this->isCurrent()) {
return $this;
}

static::forgetCurrent();

$this
Expand Down

0 comments on commit 85c4e5c

Please sign in to comment.