Skip to content

Commit 6e712b7

Browse files
committed
Add safe navigation consistency caught by rubocop
1 parent 17f88ca commit 6e712b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/comments_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def check_thread_access
395395
end
396396

397397
def check_privilege
398-
unless current_user&.at_least_moderator? || current_user.same_as?(@comment.user)
398+
unless current_user&.at_least_moderator? || current_user&.same_as?(@comment.user)
399399
render template: 'errors/forbidden', status: :forbidden
400400
end
401401
end

0 commit comments

Comments
 (0)