Merge pull request #533 from lekoala/3-1

don't trigger permissionFailure when it's not needed
This commit is contained in:
Guy Sartorelli 2023-08-18 11:15:48 +12:00 committed by GitHub
commit 7d1431df5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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