Skip to content

Commit

Permalink
fix acl query
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristof Jochmans committed May 13, 2014
1 parent 09dd5c3 commit 9fcc705
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Helper/Security/Acl/AclHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,10 @@ private function getPermittedAclIdsSQLForUser(Query $query)
OR {$aclConnection->getDatabasePlatform()->getIsNullExpression('e.object_identity_id')})
)
LEFT JOIN {$database}.acl_security_identities s ON (
s.id = e.security_identity_id AND (s.identifier = {$inString})
s.id = e.security_identity_id
)
WHERE c.class_type = {$rootEntity}
AND (s.identifier = {$inString})
AND e.mask & {$mask} > 0
SELECTQUERY;

Expand Down
3 changes: 2 additions & 1 deletion Helper/Security/Acl/AclNativeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@ public function apply(QueryBuilder $queryBuilder, PermissionDefinition $permissi
OR {$aclConnection->getDatabasePlatform()->getIsNullExpression('e.object_identity_id')})
)
LEFT JOIN {$database}.acl_security_identities s ON (
s.id = e.security_identity_id AND (s.identifier = {$inString})
s.id = e.security_identity_id
)
WHERE c.class_type = {$rootEntity}
AND (s.identifier = {$inString})
AND e.mask & {$mask} > 0
SELECTQUERY;

Expand Down

0 comments on commit 9fcc705

Please sign in to comment.