Commit 2d97ea4a authored by git's avatar git Committed by Gaurav Kapoor
Browse files

Issue #2917233 by Sergiu Stici: Ignores Block showing options for roles

parent ce97721f
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@
namespace Drupal\counter\Plugin\Block;

use Drupal\Component\Utility\Html;
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Block\BlockBase;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Database\Connection;
@@ -102,13 +101,6 @@ class CounterBlock extends BlockBase implements ContainerFactoryPluginInterface
    );
  }

  /**
   * {@inheritdoc}
   */
  protected function blockAccess(AccountInterface $account) {
    return AccessResult::allowedIfHasPermission($account, 'administer counter');
  }

  /**
   * {@inheritdoc}
   */