Skip to content

Commit

Permalink
Removed isTeacher variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaellinaresxk committed Nov 8, 2023
1 parent fb53d25 commit cb3d689
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions controllers/topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ const editTopicHandler = (req, res, next) => {
const schoolId = res.locals.currentSchool;
const { filesStorage } = await filesStoragesHelper
.filesStorageInit(schoolId, lesson._id, 'lessons', false, req);
const isTeacher = req.isTeacher;

if (lesson.title) lesson.title = decode(lesson.title);
if (lesson.contents) lesson.contents = decode(lesson.contents);
Expand All @@ -64,7 +63,6 @@ const editTopicHandler = (req, res, next) => {
lesson,
courseId: req.params.courseId,
topicId: req.params.topicId,
isTeacher,
schoolId,
teamId: req.params.teamId,
courseGroupId: req.query.courseGroup,
Expand Down
2 changes: 1 addition & 1 deletion views/topic/edit-topic.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<div class="form-group">
<label>{{$t "topic._topic.label.content" }}</label>
<!-- React Magic -->
<div id="content-blocks" data-value="{{lesson.contents}}" data-parent-id="{{lesson._id}}" data-school-id="{{schoolId}}" data-parent-type="lessons" data-etherpadbaseurl="{{etherpadBaseUrl}}"
<div id="content-blocks" data-testid="nextboardButton" data-value="{{lesson.contents}}" data-parent-id="{{lesson._id}}" data-school-id="{{schoolId}}" data-parent-type="lessons" data-etherpadbaseurl="{{etherpadBaseUrl}}"
data-iscoursegroup="{{courseGroupId}}" data-nexboardenabled="{{#ifEnv "FEATURE_NEXBOARD_ENABLED" "false"}}true{{/ifEnv}}"></div>
</div>
{{#ifneq 0 (arrayLength @root.lessonFilesStorageData.files)}}
Expand Down

0 comments on commit cb3d689

Please sign in to comment.