chore: Prevent i18n config bleeding across requests (#1214)
This commit is contained in:
@@ -20,7 +20,7 @@ class Api::V1::Widget::LabelsController < Api::V1::Widget::BaseController
|
||||
private
|
||||
|
||||
def label_defined_in_account?
|
||||
label = @account.labels.find_by(title: permitted_params[:label])
|
||||
label = @current_account.labels&.find_by(title: permitted_params[:label])
|
||||
label.present?
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user