diff --git a/src/course-home/outline-tab/OutlineTab.jsx b/src/course-home/outline-tab/OutlineTab.jsx
index 1d706316..0b47b558 100644
--- a/src/course-home/outline-tab/OutlineTab.jsx
+++ b/src/course-home/outline-tab/OutlineTab.jsx
@@ -1,6 +1,7 @@
import React, { useState } from 'react';
import { useSelector } from 'react-redux';
import { sendTrackEvent, sendTrackingLogEvent } from '@edx/frontend-platform/analytics';
+import { getAuthenticatedUser } from '@edx/frontend-platform/auth';
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
import { Button, Toast } from '@edx/paragon';
@@ -105,9 +106,19 @@ function OutlineTab({ intl }) {
});
};
+ const isEnterpriseUser = () => {
+ const authenticatedUser = getAuthenticatedUser();
+ const userRoleNames = authenticatedUser ? authenticatedUser.roles.map(role => role.split(':')[0]) : [];
+
+ return userRoleNames.includes('enterprise_learner');
+ };
+
/** [[MM-P2P] Experiment */
const MMP2P = initHomeMMP2P(courseId);
+ /** show post enrolment survey to only B2C learners */
+ const learnerType = isEnterpriseUser() ? 'enterprise_learner' : 'b2c_learner';
+
return (
<>