mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-04-17 18:18:11 +00:00
check role for settings when in mum
This commit is contained in:
parent
3274d5ab6b
commit
a3d6d876c4
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue