diff --git a/Extension/UserExtension.php b/Extension/UserExtension.php
index <HASH>..<HASH> 100644
--- a/Extension/UserExtension.php
+++ b/Extension/UserExtension.php
@@ -24,7 +24,7 @@ class UserExtension extends \Twig_Extension
             $user = $this->userManager->getUserById($user);
         }
 
-        return $user->isGranted($role);
+        return $user->hasRole($role);
     }
 
     public function getName()
can't use isGranted on user