Skip to content

Commit

Permalink
temp: disable enroll button to avoid self enrollments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacatove committed Nov 23, 2023
1 parent 7a2c806 commit 4a74b79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/alerts/enrollment-alert/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function useEnrollmentAlert(courseId) {
*/
const isVisible = !enrolledUser && authenticatedUser !== null && privateOutline;
const payload = {
canEnroll: outline && outline.enrollAlert ? outline.enrollAlert.canEnroll : false,
canEnroll: false,
courseId,
extraText: outline && outline.enrollAlert ? outline.enrollAlert.extraText : '',
isStaff: course && course.isStaff,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function usePrivateCourseAlert(courseId) {
const isVisible = !enrolledUser && (privateOutline || authenticatedUser !== null);
const payload = {
anonymousUser: authenticatedUser === null,
canEnroll: outline && outline.enrollAlert ? outline.enrollAlert.canEnroll : false,
canEnroll: false,
courseId,
};

Expand Down

0 comments on commit 4a74b79

Please sign in to comment.