Skip to content

Commit 7c324d9

Browse files
committed
refactor(events_controller): include edit, update, and destroy actions in resource instance setting for privacy check
1 parent c022315 commit 7c324d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/better_together/events_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class EventsController < FriendlyResourceController # rubocop:todo Metrics/Class
77
include NotificationReadable
88

99
# Prepend resource instance setting for privacy check
10-
prepend_before_action :set_resource_instance, only: %i[show ics]
10+
prepend_before_action :set_resource_instance, only: %i[show edit update destroy ics]
1111
prepend_before_action :set_event_for_privacy_check, only: [:show]
1212

1313
before_action if: -> { Rails.env.development? } do

0 commit comments

Comments
 (0)