don't trigger permissionFailure when it's not needed

(cherry picked from commit a19ed3ed54d4927ef96da8ce96f032dc3b0d897e)
This commit is contained in:
Thomas Portelange 2023-08-16 15:23:32 +02:00 committed by Thomas
parent 6ff4f336f7
commit 39de47167d

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.