mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
don't trigger permissionFailure when it's not needed
(cherry picked from commit a19ed3ed54d4927ef96da8ce96f032dc3b0d897e)
This commit is contained in:
parent
6ff4f336f7
commit
39de47167d
@ -369,7 +369,7 @@ class LeftAndMainSubsites extends LeftAndMainExtension
|
|||||||
}
|
}
|
||||||
|
|
||||||
// We have not found any accessible section or subsite. User should be denied access.
|
// 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.
|
// Current site is accessible. Allow through.
|
||||||
|
Loading…
Reference in New Issue
Block a user