Allow platform admins and internal users to switch their current study group
This commit is contained in:

committed by
Sebastian Serth

parent
2e3480a068
commit
ac3dc8d30f
@ -37,4 +37,8 @@ class InternalUser < User
|
||||
def displayname
|
||||
name
|
||||
end
|
||||
|
||||
def current_study_group_id
|
||||
study_groups.find_by(external_id: nil)&.id
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user