mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: Remove use of deprecated join() from Security::findAnAdministrator.
This commit is contained in:
parent
1a0673fa3f
commit
38c3410d81
@ -672,11 +672,8 @@ class Security extends Controller {
|
|||||||
$member = null;
|
$member = null;
|
||||||
|
|
||||||
// find a group with ADMIN permission
|
// find a group with ADMIN permission
|
||||||
$adminGroup = DataObject::get('Group',
|
$adminGroup = DataObject::get('Group')->where("\"Permission\".\"Code\" = 'ADMIN'")
|
||||||
"\"Permission\".\"Code\" = 'ADMIN'",
|
->sort("\"Group\".\"ID\"")->innerJoin("Permission", "\"Group\".\"ID\"=\"Permission\".\"GroupID\"")->First();
|
||||||
"\"Group\".\"ID\"",
|
|
||||||
"JOIN \"Permission\" ON \"Group\".\"ID\"=\"Permission\".\"GroupID\"",
|
|
||||||
'1')->First();
|
|
||||||
|
|
||||||
if(is_callable('Subsite::changeSubsite')) {
|
if(is_callable('Subsite::changeSubsite')) {
|
||||||
Subsite::changeSubsite($origSubsite);
|
Subsite::changeSubsite($origSubsite);
|
||||||
|
Loading…
Reference in New Issue
Block a user