Skip to content
Snippets Groups Projects
Commit a3d6d876 authored by timothycarambat's avatar timothycarambat
Browse files

check role for settings when in mum

parent 3274d5ab
No related branches found
No related tags found
No related merge requests found
...@@ -334,7 +334,8 @@ function LogoutButton() { ...@@ -334,7 +334,8 @@ function LogoutButton() {
function SettingsButton({ onClick }) { function SettingsButton({ onClick }) {
const { user } = useUser(); const { user } = useUser();
if (!!user) return null;
if (!!user && user?.role !== "admin") return null;
return ( return (
<button <button
onClick={onClick} onClick={onClick}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment