From 0b71fbf23270cd2ef0236cc80045db80dc0a978d Mon Sep 17 00:00:00 2001 From: frikky Date: Mon, 23 May 2022 03:11:50 +0200 Subject: [PATCH] Hid away buttons that shouldn't be there for non-admins --- frontend/src/views/Apps.jsx | 51 ++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/frontend/src/views/Apps.jsx b/frontend/src/views/Apps.jsx index 912acaa5..f56ae820 100644 --- a/frontend/src/views/Apps.jsx +++ b/frontend/src/views/Apps.jsx @@ -1442,7 +1442,7 @@ const Apps = (props) => { {isCloud ? null : ( - {isLoading ? null : ( + {props.userdata === undefined || props.userdata === null || props.userdata.role !== "admin" || isLoading ? null : ( { )} - - - + + {props.userdata === undefined || props.userdata === null || props.userdata.role !== "admin" ? null : + + + + } )}