showing the marketplace stuff regardless of whitelabel if the user has admin
This commit is contained in:
parent
814054e5a3
commit
f1f4b46b48
2 changed files with 2 additions and 3 deletions
|
|
@ -48,7 +48,6 @@ import DataDuckIcon from "products/Bindapt/DataDuckIcon";
|
||||||
import ContractsIcon from "products/CommonIcons/contractIcon";
|
import ContractsIcon from "products/CommonIcons/contractIcon";
|
||||||
import JohnDeereIcon from "products/CommonIcons/johnDeereIcon";
|
import JohnDeereIcon from "products/CommonIcons/johnDeereIcon";
|
||||||
import CNHiIcon from "products/CommonIcons/cnhiIcon";
|
import CNHiIcon from "products/CommonIcons/cnhiIcon";
|
||||||
import { isDevelopment, isStaging } from "utils";
|
|
||||||
|
|
||||||
const drawerWidth = 230;
|
const drawerWidth = 230;
|
||||||
|
|
||||||
|
|
@ -437,7 +436,7 @@ export default function SideNavigator(props: Props) {
|
||||||
</ListItemButton>
|
</ListItemButton>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
}
|
}
|
||||||
{(isAg || isStreamline || isStaging() || isDevelopment()) &&
|
{(isAg || isStreamline || user.hasFeature("admin")) &&
|
||||||
<Tooltip title="Marketplace" placement="right">
|
<Tooltip title="Marketplace" placement="right">
|
||||||
<ListItemButton
|
<ListItemButton
|
||||||
id="tour-marketplace"
|
id="tour-marketplace"
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ export default function Marketplace() {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
let list: ProductDetails[] = [];
|
let list: ProductDetails[] = [];
|
||||||
if (IsAdaptiveAgriculture()) {
|
if (IsAdaptiveAgriculture() || user.hasFeature("admin")) {
|
||||||
list = list.concat(agFeatureList);
|
list = list.concat(agFeatureList);
|
||||||
}
|
}
|
||||||
// if(IsAdCon()){
|
// if(IsAdCon()){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue