mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #9196 from creative-commoners/pulls/3.7/pass-member-to-access
FIX Member argument is now passed to LeftAndMain::alternateAccessCheck()
This commit is contained in:
commit
53f5c3d0e5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user