Skip to content

Commit 1dd16f1

Browse files
committed
Allow teachers to view requestComments Submissions
Since RfCs are shown to users of the same study group anyway, we can safely show them to teachers (of the same study group), too.
1 parent 22a6665 commit 1dd16f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/policies/submission_policy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def resolve
4747
if @user.admin?
4848
Submission::CAUSES
4949
elsif @user.teacher?
50-
%w[submit remoteSubmit]
50+
%w[submit remoteSubmit requestComments]
5151
else
5252
[]
5353
end

0 commit comments

Comments
 (0)