diff --git a/app/models/user.rb b/app/models/user.rb index 92460354..cc72b023 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -34,7 +34,13 @@ def cas_extra_attributes=(extra_attributes) self.cas_uid = value end end + self.save! + + if self.cas_ugentStudentID # rubocop:disable Style/GuardClause + enqueue_fetch_club + enqueue_fetch_enrolled_clubs + end end # return Givenname + surname or username if these don't exist