Skip to content

Commit f0b6e04

Browse files
authored
Merge pull request #2 from basakest/fix-addPolicies
fix: addPolicies doesn't insert the value of p_type
2 parents ca6f818 + 242d78b commit f0b6e04

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Adapter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ public function addPolicies(string $sec, string $ptype, array $rules): void
240240

241241
$columnsCount = count($columns);
242242
foreach ($rules as $rule) {
243+
array_unshift($rule, $ptype);
243244
$values = array_merge($values, array_pad($rule, $columnsCount, null));
244245
$sets[] = array_pad([], $columnsCount, '?');
245246
}

0 commit comments

Comments
 (0)