Skip to content

Commit

Permalink
Stab at trying to find a problem
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyf committed Dec 21, 2023
1 parent 134c8ff commit 342605d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ def groups
# @return [Array] Hyrax::Group names the User is a member of
def hyrax_group_names
groups
rescue NoMethodError
raise "Hyrax::Groups: #{roles.where(name: 'member', resource_type: 'Hyrax::Group').map(&:resource).inspect}\nRoles: #{roles.all.inspect}"
end

# TODO: this needs tests and to be moved to the service
Expand Down

0 comments on commit 342605d

Please sign in to comment.