Skip to content

Commit

Permalink
Fixed issue with allowed levels
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-luke authored Sep 16, 2019
1 parent 4d53672 commit 4fa50d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ private function checkScopeAndLevel(string $scope, int $level): void
{
$this->checkScope($scope);

if ($level >= 0 && $level < 5) {
if ($level < 0 && $level > 4) {
throw new InvalidArgumentException('Given [level] must be in range of 0-4.');
}
}
Expand Down

0 comments on commit 4fa50d7

Please sign in to comment.