diff --git a/core/modules/user/lib/Drupal/user/UserBCDecorator.php b/core/modules/user/lib/Drupal/user/UserBCDecorator.php index f75da09..eed508b 100644 --- a/core/modules/user/lib/Drupal/user/UserBCDecorator.php +++ b/core/modules/user/lib/Drupal/user/UserBCDecorator.php @@ -59,21 +59,21 @@ public function getSessionId() { * {@inheritdoc} */ public function hasRole($rid) { - return $this->getBCEntity()->hasRole($rid); + return $this->decorated->hasRole($rid); } /** * {@inheritdoc} */ public function addRole($rid) { - $this->getBCEntity()->addRole($rid); + $this->decorated->addRole($rid); } /** * {@inheritdoc} */ public function removeRole($rid) { - $this->getBCEntity()->removeRole($rid); + $this->decorated->removeRole($rid); } }