Skip to content

Commit

Permalink
Merge pull request #755 from the-deep/feature-hide-viz
Browse files Browse the repository at this point in the history
Remove viz button in leads page
  • Loading branch information
pprabesh authored Apr 8, 2019
2 parents b85e1a6 + ef4c4f9 commit ec26ee1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/constants/viewsAcl.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ const notLeadEditable = ({ isLoggedIn, leadPermissions }) => (
!isLoggedIn || !(leadPermissions.create || leadPermissions.modify)
);

const notLeadVizViewable = ({ isLoggedIn, leadPermissions, isBeta }) => (
!isLoggedIn || !leadPermissions.view || isBeta
);
const notClusteringViewable = ({ isLoggedIn, leadPermissions, isBeta }) => (
!isLoggedIn || !leadPermissions.view || isBeta
);
Expand Down Expand Up @@ -54,7 +57,7 @@ const acl = {
workshop: { hide: notDevAndAdmin },
connectors: { hide: notLoggedIn },

leadsViz: { hide: notLeadViewable },
leadsViz: { hide: notLeadVizViewable },
clusterViz: { hide: notClusteringViewable },
leads: { hide: notLeadViewable },
leadGroups: { hide: notLeadViewable },
Expand Down

0 comments on commit ec26ee1

Please sign in to comment.