Skip to content

Commit 4872e8f

Browse files
authored
fix: Use loadPolicyArray instead of loadPolicyLine
1 parent 0e5b1f2 commit 4872e8f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Adapters/DatabaseAdapter.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,7 @@ public function loadPolicy(Model $model): void
9393
$rows = $this->eloquent->getAllFromCache();
9494

9595
foreach ($rows as $row) {
96-
$line = implode(', ', array_filter($row, function ($val) {
97-
return '' != $val && !is_null($val);
98-
}));
99-
$this->loadPolicyLine(trim($line), $model);
96+
$this->loadPolicyArray($this->filterRule($row), $model);
10097
}
10198
}
10299

0 commit comments

Comments
 (0)