Skip to content

Commit 6e4c92f

Browse files
committed
Fix missed table rename afer copy and paste from community policy to event policy
1 parent ae3d2d5 commit 6e4c92f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/policies/better_together/event_policy.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ def resolve
3434
def permitted_query
3535
events_table = ::BetterTogether::Event.arel_table
3636

37-
# Only list communities that are public and where the current person is a member or a creator
37+
# Only list events that are public and where the current person is a member or a creator
3838
query = events_table[:privacy].eq('public')
3939

4040
if permitted_to?('manage_platform')
41-
query = query.or(communities_table[:privacy].eq('private'))
41+
query = query.or(events_table[:privacy].eq('private'))
4242
elsif agent
4343
query = query.or(
4444
events_table[:creator_id].eq(agent.id)

0 commit comments

Comments
 (0)