Allow admins and teachers to remove explicit RfC text

This commit is contained in:
Sebastian Serth
2022-04-28 15:31:58 +02:00
parent e9efb5bc2b
commit 9a0f26a84f
4 changed files with 14 additions and 1 deletions

View File

@ -25,6 +25,10 @@ class RequestForCommentPolicy < ApplicationPolicy
admin? || author?
end
def clear_question?
admin? || teacher_in_study_group?
end
def edit?
admin?
end