Apply manual rubocop fixes
This commit is contained in:
@ -5,7 +5,7 @@ class ExercisePolicy < AdminOrAuthorPolicy
|
||||
admin?
|
||||
end
|
||||
|
||||
%i[show? feedback? statistics? get_rfcs_for_exercise?].each do |action|
|
||||
%i[show? feedback? statistics? rfcs_for_exercise?].each do |action|
|
||||
define_method(action) { admin? || teacher_in_study_group? || teacher? && @record.public? || author? }
|
||||
end
|
||||
|
||||
|
@ -37,11 +37,11 @@ class RequestForCommentPolicy < ApplicationPolicy
|
||||
everyone
|
||||
end
|
||||
|
||||
def get_my_comment_requests?
|
||||
def my_comment_requests?
|
||||
everyone
|
||||
end
|
||||
|
||||
def get_rfcs_with_my_comments?
|
||||
def rfcs_with_my_comments?
|
||||
everyone
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user