mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fixed bug in Member::mapInCMSGroups()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60912 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
53cc576dab
commit
8d62fbf1aa
@ -834,7 +834,7 @@ class Member extends DataObject {
|
|||||||
$perms = array_unique(array_merge($perms, array_keys($cmsPerms)));
|
$perms = array_unique(array_merge($perms, array_keys($cmsPerms)));
|
||||||
}
|
}
|
||||||
|
|
||||||
$SQL_perms = "'" . array_join(Convert::raw2sql($perms), "', '") . "'";
|
$SQL_perms = "'" . implode("', '", Convert::raw2sql($perms)) . "'";
|
||||||
|
|
||||||
$groups = DataObject::get('Group', "", "",
|
$groups = DataObject::get('Group', "", "",
|
||||||
"INNER JOIN `Permission` ON `Permission`.GroupID = `Group`.ID AND `Permission`.Code IN ($SQL_perms)");
|
"INNER JOIN `Permission` ON `Permission`.GroupID = `Group`.ID AND `Permission`.Code IN ($SQL_perms)");
|
||||||
|
Loading…
Reference in New Issue
Block a user