Revert changes for Python20 fishbowl experiment
* Show all RfCs again, even those with #loesung
This commit is contained in:
@ -18,7 +18,6 @@ class RequestForCommentsController < ApplicationController
|
||||
.with_last_activity
|
||||
.ransack(params[:q])
|
||||
@request_for_comments = @search.result
|
||||
.where("question NOT LIKE '%#loesung%'")
|
||||
.joins(:exercise)
|
||||
.where(exercises: {unpublished: false})
|
||||
.includes(submission: [:study_group])
|
||||
@ -99,8 +98,6 @@ class RequestForCommentsController < ApplicationController
|
||||
|
||||
@request_for_comment = RequestForComment.new(request_for_comment_params)
|
||||
|
||||
@request_for_comment.solved = true if @request_for_comment.question.include?('#loesung')
|
||||
|
||||
respond_to do |format|
|
||||
if @request_for_comment.save
|
||||
# create thread here and execute tests. A run is triggered from the frontend and does not need to be handled here.
|
||||
|
@ -8,7 +8,7 @@ class RequestForCommentPolicy < ApplicationPolicy
|
||||
end
|
||||
|
||||
def show?
|
||||
admin? || teacher_in_study_group? || author? || everyone && @record.question&.exclude?('#loesung')
|
||||
everyone
|
||||
end
|
||||
|
||||
def destroy?
|
||||
|
Reference in New Issue
Block a user