Skip to content
Snippets Groups Projects

Issue #3524897: Dependency from core block plugin to block module

Closed Ann Mary Sruthy requested to merge issue/drupal-3524897:3524897-dependency-from-core into 11.x
2 files
+ 5
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -67,7 +67,7 @@ public static function create(ContainerInterface $container, array $configuratio
*/
public function build() {
$build = [];
if ($this->currentUser->hasPermission('administer blocks')) {
if ($this->currentUser->hasPermission('view diagnostic messages') || $this->currentUser->hasPermission('administer blocks')) {
$build += $this->brokenMessage();
}
return $build;
Loading