0
0
Fork 0

Remove duplicate cache header setting before action (#33833)

This commit is contained in:
Matt Jankowski 2025-02-05 04:19:08 -05:00 committed by GitHub
parent 8dce5138dd
commit c3419d146a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 0 additions and 62 deletions

View file

@ -6,7 +6,6 @@ class Oauth::AuthorizedApplicationsController < Doorkeeper::AuthorizedApplicatio
before_action :store_current_location
before_action :authenticate_resource_owner!
before_action :require_not_suspended!, only: :destroy
before_action :set_cache_headers
before_action :set_last_used_at_by_app, only: :index, unless: -> { request.format == :json }
@ -30,10 +29,6 @@ class Oauth::AuthorizedApplicationsController < Doorkeeper::AuthorizedApplicatio
forbidden if current_account.unavailable?
end
def set_cache_headers
response.cache_control.replace(private: true, no_store: true)
end
def set_last_used_at_by_app
@last_used_at_by_app = current_resource_owner.applications_last_used
end