Limit access to the study group dashboard to teachers of that group

Also rename teacher_in_study_group? to add a `?` at the end
This commit is contained in:
Sebastian Serth
2019-05-15 17:41:00 +02:00
parent 652dc7001e
commit 5dd641082e
3 changed files with 8 additions and 4 deletions

View File

@@ -14,6 +14,6 @@ class SubmissionPolicy < ApplicationPolicy
def show_study_group?
admin? || teacher_in_study_group
admin? || teacher_in_study_group?
end
end