Skip to content

Commit 2801501

Browse files
committed
wip
1 parent a4e72f8 commit 2801501

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Models/Concerns/Bannable.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,8 @@ public function ban(
7777

7878
$this->bans->push($ban);
7979

80-
if ($ban->isActive()) {
81-
$this->ban_level = $ban->level;
82-
$this->save();
83-
}
80+
$this->ban_level = $ban->isActive();
81+
$this->save();
8482

8583
return $ban;
8684
}

0 commit comments

Comments
 (0)