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