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 JohnDeereIcon from "products/CommonIcons/johnDeereIcon";
|
||||
import CNHiIcon from "products/CommonIcons/cnhiIcon";
|
||||
import { isDevelopment, isStaging } from "utils";
|
||||
|
||||
const drawerWidth = 230;
|
||||
|
||||
|
|
@ -437,7 +436,7 @@ export default function SideNavigator(props: Props) {
|
|||
</ListItemButton>
|
||||
</Tooltip>
|
||||
}
|
||||
{(isAg || isStreamline || isStaging() || isDevelopment()) &&
|
||||
{(isAg || isStreamline || user.hasFeature("admin")) &&
|
||||
<Tooltip title="Marketplace" placement="right">
|
||||
<ListItemButton
|
||||
id="tour-marketplace"
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ export default function Marketplace() {
|
|||
|
||||
useEffect(() => {
|
||||
let list: ProductDetails[] = [];
|
||||
if (IsAdaptiveAgriculture()) {
|
||||
if (IsAdaptiveAgriculture() || user.hasFeature("admin")) {
|
||||
list = list.concat(agFeatureList);
|
||||
}
|
||||
// if(IsAdCon()){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue