From da5c900e3dc082e49a8403f68d342b9f936bcf88 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Thu, 2 Nov 2017 11:07:33 +0100 Subject: [PATCH] Disabled statistics --- mixins/Sidebar.pixy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mixins/Sidebar.pixy b/mixins/Sidebar.pixy index 237f062b..ba011078 100644 --- a/mixins/Sidebar.pixy +++ b/mixins/Sidebar.pixy @@ -25,7 +25,10 @@ component Sidebar(user *arn.User) SidebarButton("Groups", "/groups", "users") SidebarButton("Shop", "/shop", "shopping-cart") - SidebarButton("Statistics", "/statistics", "pie-chart") + + if user.Role == "admin" || user.Role == "editor" + SidebarButton("Statistics", "/statistics", "pie-chart") + SidebarButton("Settings", "/settings", "cog") .spacer