More SharingMiddleware testing
This commit is contained in:
@@ -128,8 +128,7 @@ class SharingMiddleware extends Middleware {
|
||||
private function checkPermissions($userId, $controller, $method, $params, $methodName) {
|
||||
|
||||
// no permission checks needed for plain html page or RequireNoPermission
|
||||
if (
|
||||
$controller instanceof PageController ||
|
||||
if ($controller instanceof PageController ||
|
||||
$this->reflector->hasAnnotation('RequireNoPermission')
|
||||
) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user