fix: correct spelling for is_admin

This commit is contained in:
2025-06-04 19:11:28 +02:00
parent f610d7480f
commit a3b04b6243
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ export const useBarItems = (): [BarItem[], (item: BarItem) => boolean] => {
tab: "data-personalization", tab: "data-personalization",
pathname: "/data-personalize", pathname: "/data-personalize",
}, },
...(profile.isAdmin ...(profile.is_admin
? [ ? [
{ {
icon: <Blocks />, icon: <Blocks />,

View File

@ -32,7 +32,7 @@ const AdminLayout: FC = () => {
</div>; </div>;
} }
if (!profile?.isAdmin) { if (!profile?.is_admin) {
return <Navigate to="/not-allowed" />; return <Navigate to="/not-allowed" />;
} }