Skip to content

Commit

Permalink
fix SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewandante committed Jun 15, 2023
1 parent 71330c4 commit e1d1fc6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Security/InheritedPermissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,9 @@ protected function batchPermissionCheckForStage(
$uninheritedPermissions = $stageRecords
->where([
"(\"$typeField\" IN (?, ?)"
. " OR (\"$typeField\" = ? AND \"$groupJoinTable\".\"{$baseTable}ID\" IS NOT NULL))"
. " OR (\"$typeField\" = ? AND \"$memberJoinTable\".\"{$baseTable}ID\" IS NOT NULL))"
. " OR (\"$typeField\" = ? AND \"$groupJoinTable\".\"{$baseTable}ID\" IS NOT NULL)"
. " OR (\"$typeField\" = ? AND \"$memberJoinTable\".\"{$baseTable}ID\" IS NOT NULL)"
. ")"
=> [
self::ANYONE,
self::LOGGED_IN_USERS,
Expand Down

0 comments on commit e1d1fc6

Please sign in to comment.