src/Kunstmaan/AdminBundle/Helper/Security/Acl/AclHelper.php 1 location
|
@@ 167-173 (lines=7) @@
|
164 |
|
$uR = array_unique($uR); |
165 |
|
$inString = implode(' OR s.identifier = ', $uR); |
166 |
|
|
167 |
|
if (is_object($user)) { |
168 |
|
$inString .= ' OR s.identifier = "' . str_replace( |
169 |
|
'\\', |
170 |
|
'\\\\', |
171 |
|
get_class($user) |
172 |
|
) . '-' . $user->getUserName() . '"'; |
173 |
|
} |
174 |
|
|
175 |
|
$selectQuery = <<<SELECTQUERY |
176 |
|
SELECT DISTINCT o.object_identifier as id FROM {$databasePrefix}acl_object_identities as o |
src/Kunstmaan/AdminBundle/Helper/Security/Acl/AclNativeHelper.php 1 location
|
@@ 99-105 (lines=7) @@
|
96 |
|
$uR = array_unique($uR); |
97 |
|
$inString = implode(' OR s.identifier = ', (array) $uR); |
98 |
|
|
99 |
|
if (is_object($user)) { |
100 |
|
$inString .= ' OR s.identifier = "' . str_replace( |
101 |
|
'\\', |
102 |
|
'\\\\', |
103 |
|
get_class($user) |
104 |
|
) . '-' . $user->getUserName() . '"'; |
105 |
|
} |
106 |
|
|
107 |
|
$joinTableQuery = <<<SELECTQUERY |
108 |
|
SELECT DISTINCT o.object_identifier as id FROM {$databasePrefix}acl_object_identities as o |