added check if canView

This commit is contained in:
rasstislav 2016-09-25 14:17:02 +02:00 committed by GitHub
parent 0986537be7
commit 51eaa5f8be

View File

@ -63,6 +63,10 @@ class WidgetContentControllerExtension extends Extension
user_error('No widget found', E_USER_ERROR);
}
if (!$widget->canView()) {
return Security::permissionFailure();
}
return $widget->getController();
}
}