From abb0b65445e5ec68474587cd0732b1d9814d2920 Mon Sep 17 00:00:00 2001 From: Stian Aune Date: Thu, 23 May 2019 21:24:18 +0200 Subject: [PATCH] Fixing the error on login. --- webui/src/Components/Group.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/src/Components/Group.jsx b/webui/src/Components/Group.jsx index b1b1f76..9cdccd1 100644 --- a/webui/src/Components/Group.jsx +++ b/webui/src/Components/Group.jsx @@ -40,7 +40,7 @@ function Group({id, name, permissions}) { } function iCan(name) { - if (permissions === null) { + if (permissions === null || user === null) { return false; }