Make statistics teacher-safe

This commit is contained in:
Maximilian Grundke
2016-02-24 14:23:15 +01:00
parent 4ebaee8931
commit 0a5301a595
3 changed files with 7 additions and 2 deletions

View File

@ -17,4 +17,8 @@ class InternalUser < ActiveRecord::Base
activation_token? || reset_password_token?
end
private :password_void?
def teacher?
role == 'teacher'
end
end