Skip to content

Commit

Permalink
BC-6200 removing suspicious code (#4684)
Browse files Browse the repository at this point in the history
in a find context there is no specific id thus resolving to undefined and resulting in an feathers mongoose issue
  • Loading branch information
Loki-Afro authored Jan 9, 2024
1 parent e6193d3 commit dc301b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/lesson/hooks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ exports.before = () => {
hasPermission('TOPIC_VIEW'),
iff(isProvider('external'), validateLessonFind),
iff(isProvider('external'), getRestrictPopulatesHook(populateWhitelist)),
iff(isProvider('external'), restrictToUsersCoursesLessons, restrictToUsersDraftLessons),
iff(isProvider('external'), restrictToUsersCoursesLessons),
],
get: [
hasPermission('TOPIC_VIEW'),
Expand Down

0 comments on commit dc301b5

Please sign in to comment.