retrieve correct displaynames for users (from consumer if it is openHPI, otherwise use internal name)
This commit is contained in:
@ -21,4 +21,9 @@ class InternalUser < ActiveRecord::Base
|
||||
def teacher?
|
||||
role == 'teacher'
|
||||
end
|
||||
|
||||
def displayname
|
||||
name
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user