diff --git a/app/controllers/api/v1/accounts/custom_attribute_definitions_controller.rb b/app/controllers/api/v1/accounts/custom_attribute_definitions_controller.rb index 69df99e14..7bd9ae0c3 100644 --- a/app/controllers/api/v1/accounts/custom_attribute_definitions_controller.rb +++ b/app/controllers/api/v1/accounts/custom_attribute_definitions_controller.rb @@ -1,6 +1,7 @@ class Api::V1::Accounts::CustomAttributeDefinitionsController < Api::V1::Accounts::BaseController before_action :fetch_custom_attributes_definitions, except: [:create] before_action :fetch_custom_attribute_definition, only: [:show, :update, :destroy] + before_action :check_authorization DEFAULT_ATTRIBUTE_MODEL = 'conversation_attribute'.freeze def index; end diff --git a/app/javascript/dashboard/components-next/Companies/CompaniesHeader/CompanyHeader.vue b/app/javascript/dashboard/components-next/Companies/CompaniesHeader/CompanyHeader.vue index f85b613a3..00c1a1694 100644 --- a/app/javascript/dashboard/components-next/Companies/CompaniesHeader/CompanyHeader.vue +++ b/app/javascript/dashboard/components-next/Companies/CompaniesHeader/CompanyHeader.vue @@ -2,6 +2,7 @@ import Input from 'dashboard/components-next/input/Input.vue'; import Icon from 'dashboard/components-next/icon/Icon.vue'; import CompanySortMenu from './components/CompanySortMenu.vue'; +import CompanyMoreActions from './components/CompanyMoreActions.vue'; defineProps({ showSearch: { type: Boolean, default: true }, @@ -11,7 +12,7 @@ defineProps({ activeOrdering: { type: String, default: '' }, }); -const emit = defineEmits(['search', 'update:sort']); +const emit = defineEmits(['search', 'update:sort', 'create']);