feat: gate token API access and account webhooks behind api_and_webhooks flag

This commit is contained in:
Shivam Mishra
2026-07-09 17:51:05 +05:30
parent 8d2ef4ec5e
commit d3b294fe9c
12 changed files with 99 additions and 8 deletions
@@ -1,7 +1,7 @@
require 'rails_helper'
RSpec.describe 'Api::V1::Accounts::BaseController', type: :request do
let(:account) { create(:account) }
let(:account) { create(:account).tap { |account| account.enable_features!('api_and_webhooks') } }
let(:inbox) { create(:inbox, account: account) }
let!(:conversation) { create(:conversation, account: account, inbox: inbox) }
let(:agent) { create(:user, account: account, role: :agent) }