refactor: reuse access token scope helper for direct uploads

This commit is contained in:
Shivam Mishra
2026-05-26 12:32:27 +05:30
parent 1987abf9e2
commit f778057b18
3 changed files with 31 additions and 0 deletions
@@ -1,5 +1,7 @@
class Api::V1::Accounts::Conversations::DirectUploadsController < ActiveStorage::DirectUploadsController
include EnsureCurrentAccountHelper
include AccessTokenAuthHelper
before_action :prevent_read_only_access_token!
before_action :current_account
before_action :conversation