From 72806b4a994e2744d0a13f711f4e239cd0ed039f Mon Sep 17 00:00:00 2001
From: shpuld <shp@cock.li>
Date: Thu, 9 Nov 2017 10:33:10 +0200
Subject: Check if logged-in when rendering the block button.

---
 src/components/user_card_content/user_card_content.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/components/user_card_content/user_card_content.vue')

diff --git a/src/components/user_card_content/user_card_content.vue b/src/components/user_card_content/user_card_content.vue
index cba6296c..5635a177 100644
--- a/src/components/user_card_content/user_card_content.vue
+++ b/src/components/user_card_content/user_card_content.vue
@@ -46,7 +46,7 @@
               </button>
             </span>
           </div>
-          <div class='block' v-if='isOtherUser'>
+          <div class='block' v-if='isOtherUser && loggedIn'>
             <span v-if='user.statusnet_blocking'>
               <button @click="unblockUser" class="base04 base00-background pressed">
                 {{ $t('user_card.blocked') }}
@@ -150,7 +150,7 @@
 
 <style lang="scss">
 @import '../../_variables.scss';
-  
+
 .profile-panel-background {
   background-size: cover;
   border-radius: 10px;
-- 
cgit v1.2.3-70-g09d2

