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",
|
||||
pathname: "/data-personalize",
|
||||
},
|
||||
...(profile.isAdmin
|
||||
...(profile.is_admin
|
||||
? [
|
||||
{
|
||||
icon: <Blocks />,
|
||||
|
@ -32,7 +32,7 @@ const AdminLayout: FC = () => {
|
||||
</div>;
|
||||
}
|
||||
|
||||
if (!profile?.isAdmin) {
|
||||
if (!profile?.is_admin) {
|
||||
return <Navigate to="/not-allowed" />;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user