diff --git a/core/lib/Drupal/Core/Session/AccountProxy.php b/core/lib/Drupal/Core/Session/AccountProxy.php
index 8c385dd..c3f10ad 100644
--- a/core/lib/Drupal/Core/Session/AccountProxy.php
+++ b/core/lib/Drupal/Core/Session/AccountProxy.php
@@ -100,7 +100,7 @@ public function id() {
    * {@inheritdoc}
    */
   public function getRoles($exclude_locked_roles = FALSE) {
-    return $this->getAccount()->getRoles();
+    return $this->getAccount()->getRoles($exclude_locked_roles);
   }
 
   /**
