mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-15 10:50:31 +01:00
check role for settings when in mum
This commit is contained in:
parent
3274d5ab6b
commit
a3d6d876c4
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user