Skip to content

Commit

Permalink
fix for restful default permission condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jturbide committed Feb 7, 2025
1 parent 2260987 commit 3d980f9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ public function defaultPermissionCondition(): array|string|null

foreach ($columns as $column) {
$field = $this->appendModelName($column);
$value = $this->generateBindKey('deleted');
$value = $this->generateBindKey('permission');

$bind[$field] = $userId;
$bindTypes[$field] = Column::BIND_PARAM_INT;
$bind[$value] = $userId;
$bindTypes[$value] = Column::BIND_PARAM_INT;

$query [] = "{$field} = :{$value}:";
}
Expand Down

0 comments on commit 3d980f9

Please sign in to comment.