Skip to content

Commit

Permalink
Merge pull request #533 from lekoala/3-1
Browse files Browse the repository at this point in the history
don't trigger permissionFailure when it's not needed
  • Loading branch information
GuySartorelli authored Aug 17, 2023
2 parents 6ff4f33 + 39de471 commit 7d1431d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extensions/LeftAndMainSubsites.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ public function onBeforeInit()
}

// 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.
Expand Down

0 comments on commit 7d1431d

Please sign in to comment.