File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ export function CommentActions({
305305 setIsEditing : ( isEditing : boolean ) => void ;
306306} ) {
307307 const submissionController = useSubmissionController ( ) ;
308- const { private_profile_id } = useClassProfiles ( ) ;
308+ const { private_profile_id, public_profile_id } = useClassProfiles ( ) ;
309309 const isGraderOrInstructor = useIsGraderOrInstructor ( ) ;
310310 const isInstructor = useIsInstructor ( ) ;
311311 const isStudent = useIsStudent ( ) ;
@@ -317,7 +317,7 @@ export function CommentActions({
317317 // 1. Instructors can edit all comments
318318 // 2. Graders can only edit their own comments
319319 // 3. Students can edit their own comments IF the review is not completed (or no review exists)
320- const isCommentAuthor = comment . author === private_profile_id ;
320+ const isCommentAuthor = comment . author === private_profile_id || comment . author === public_profile_id ;
321321 const isReviewCompleted = comment . submission_review_id ? submissionReview ?. completed_at != null : false ;
322322
323323 const canEditComment =
You can’t perform that action at this time.
0 commit comments