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:
@@ -14,6 +14,6 @@ class SubmissionPolicy < ApplicationPolicy
|
||||
|
||||
|
||||
def show_study_group?
|
||||
admin? || teacher_in_study_group
|
||||
admin? || teacher_in_study_group?
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user