fix: correct spelling for is_admin
This commit is contained in:
@ -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 />,
|
||||||
|
@ -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" />;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user