mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Merge pull request #533 from lekoala/3-1
don't trigger permissionFailure when it's not needed
This commit is contained in:
commit
7d1431df5e
@ -369,7 +369,7 @@ class LeftAndMainSubsites extends LeftAndMainExtension
|
||||
}
|
||||
|
||||
// We have not found any accessible section or subsite. User should be denied access.
|
||||
return Security::permissionFailure($this->owner);
|
||||
// This is handled already by LeftAndMain thanks to alternateAccessCheck
|
||||
}
|
||||
|
||||
// Current site is accessible. Allow through.
|
||||
|
Loading…
Reference in New Issue
Block a user