From d0669adf1a1bbdd596762c4a1f90754e43e3796d Mon Sep 17 00:00:00 2001
From: Luis Felipe Risch <lfr20@inf.ufpr.br>
Date: Mon, 5 Oct 2020 15:45:19 -0300
Subject: [PATCH] Added a logic to add one more tab, the admin area, to the
 authorized user

---
 src/Components/MenuBar.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Components/MenuBar.js b/src/Components/MenuBar.js
index c614e3e0..02b16e51 100644
--- a/src/Components/MenuBar.js
+++ b/src/Components/MenuBar.js
@@ -124,7 +124,7 @@ export default function MenuBar(props) {
 
         //If the user has the permisson of editor or admin, it will display to him/her
         //one more tab in the user area, the admin tab
-        if (state.userIsLoggedIn && (obj.id === 3 || obj.id === 7)) {
+        if (obj.id === 3 || obj.id === 7) {
             minhaArea.push(
                 { name: "Perfil e Atividades", href: "/perfil", value: '0' },
                 { name: "Status e Conquistas", href: "/perfil", value: '1' },
-- 
GitLab