MINOR: Remove use of deprecated join() from Security::findAnAdministrator.

This commit is contained in:
Sam Minnee 2011-10-29 17:47:19 +13:00
parent 1a0673fa3f
commit 38c3410d81

View File

@ -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);