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 ae3d2d5 commit 6e4c92fCopy full SHA for 6e4c92f
app/policies/better_together/event_policy.rb
@@ -34,11 +34,11 @@ def resolve
34
def permitted_query
35
events_table = ::BetterTogether::Event.arel_table
36
37
- # Only list communities that are public and where the current person is a member or a creator
+ # Only list events that are public and where the current person is a member or a creator
38
query = events_table[:privacy].eq('public')
39
40
if permitted_to?('manage_platform')
41
- query = query.or(communities_table[:privacy].eq('private'))
+ query = query.or(events_table[:privacy].eq('private'))
42
elsif agent
43
query = query.or(
44
events_table[:creator_id].eq(agent.id)
0 commit comments