We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 495aa6b commit 1d0c609Copy full SHA for 1d0c609
app/models/users/user.rb
@@ -122,6 +122,9 @@ def contributable_universes
122
def contributable_universe_ids
123
# TODO: email confirmation needs to happen for data safety / privacy (only verified emails)
124
@contributable_universe_ids ||= Contributor.where('email = ? OR user_id = ?', self.email, self.id).pluck(:universe_id)
125
+ @contributable_universe_ids += Contributor.where(universe_id: my_universe_ids).pluck(:universe_id)
126
+
127
+ @contributable_universe_ids.uniq
128
end
129
130
# TODO: rename this to #{content_type}_shared_with_me
0 commit comments