From 7d901a6d9b126ac057918f827e65aa0360231d1b Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Tue, 27 Aug 2019 11:23:02 +1200 Subject: [PATCH] FIX Member argument is now passed to LeftAndMain::alternateAccessCheck() --- admin/code/LeftAndMain.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/admin/code/LeftAndMain.php b/admin/code/LeftAndMain.php index fc2e940cd..024ccccb2 100644 --- a/admin/code/LeftAndMain.php +++ b/admin/code/LeftAndMain.php @@ -193,9 +193,11 @@ class LeftAndMain extends Controller implements PermissionProvider { if(!$member) return false; // alternative extended checks - if($this->hasMethod('alternateAccessCheck')) { - $alternateAllowed = $this->alternateAccessCheck(); - if($alternateAllowed === FALSE) return false; + if ($this->hasMethod('alternateAccessCheck')) { + $alternateAllowed = $this->alternateAccessCheck($member); + if ($alternateAllowed === false) { + return false; + } } // Check for "CMS admin" permission