diff --git a/lib/Auth/Process/IsBanned.php b/lib/Auth/Process/IsBanned.php
index 1c541ab01485ae2a25da2b5ddb34367f6574873e..08282ffcbadeb7ce62228574e2dc998f5acdff03 100644
--- a/lib/Auth/Process/IsBanned.php
+++ b/lib/Auth/Process/IsBanned.php
@@ -75,11 +75,12 @@ class IsBanned extends ProcessingFilter
             );
         }
 
-        if ($this->banExists($user)) {
-            Logger::info('perun:IsBanned: user ' . $user . ' is banned, redirecting to configured URL');
+        $userId =  $user->getId();
+        if ($this->banExists($userId)) {
+            Logger::info('perun:IsBanned: user ' . $userId . ' is banned, redirecting to configured URL');
             HTTP::redirectTrustedURL($this->redirectUrl);
         } else {
-            Logger::debug('perun:IsBanned: user ' . $user . ' is not banned');
+            Logger::debug('perun:IsBanned: user ' . $userId . ' is not banned');
         }
     }
 
diff --git a/www/listOfSps.js b/www/listOfSps.js
index 28056f164cac8e7d7f5a6b96271a2b91c337c004..d0bf386ca6ef57b663b1a27d70e6d52bee2c8ebb 100644
--- a/www/listOfSps.js
+++ b/www/listOfSps.js
@@ -1,6 +1,6 @@
 function getTranslation(str) {
   return JSON.parse(
-    document.getElementById("translations").getAttribute("content")
+    document.getElementById("translations").getAttribute("content"),
   )[str];
 }