FIX Member argument is now passed to LeftAndMain::alternateAccessCheck()

This commit is contained in:
Robbie Averill 2019-08-27 11:23:02 +12:00
parent 8c41dbb8b4
commit 7d901a6d9b

View File

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