Skip to content

Commit

Permalink
Merge pull request #305 from Kunstmaan/fix_acl
Browse files Browse the repository at this point in the history
fix acl query
  • Loading branch information
Roderik van der Veer committed May 13, 2014
2 parents 09dd5c3 + 9fcc705 commit 395f68c
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 395f68c

Please sign in to comment.