retrieve correct displaynames for users (from consumer if it is openHPI, otherwise use internal name)

This commit is contained in:
Ralf Teusner
2016-04-27 18:33:27 +02:00
parent d56290f2d8
commit 8ba67c68c0
3 changed files with 15 additions and 1 deletions

View File

@ -21,4 +21,9 @@ class InternalUser < ActiveRecord::Base
def teacher?
role == 'teacher'
end
def displayname
name
end
end