mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
BUGFIX Fixed Subsite::hasMainSitePermission() SQL query, removed use of USING() and rely on standard INNER JOIN ON syntax that works on all databases
This commit is contained in:
parent
bdd3069098
commit
dce64a567f
@ -361,9 +361,8 @@ JS;
|
||||
SELECT COUNT(\"Permission\".\"ID\")
|
||||
FROM \"Permission\"
|
||||
INNER JOIN \"Group\" ON \"Group\".\"ID\" = \"Permission\".\"GroupID\" AND \"Group\".\"AccessAllSubsites\" = 1
|
||||
INNER JOIN \"Group_Members\" USING(\"GroupID\")
|
||||
WHERE
|
||||
\"Permission\".\"Code\" IN ('$SQL_perms')
|
||||
INNER JOIN \"Group_Members\" ON \"Group_Members\".\"GroupID\" = \"Permission\".\"GroupID\"
|
||||
WHERE \"Permission\".\"Code\" IN ('$SQL_perms')
|
||||
AND \"MemberID\" = {$memberID}
|
||||
")->value();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user