feat: Vite + vue 3 💚 (#10047)
Fixes https://github.com/chatwoot/chatwoot/issues/8436 Fixes https://github.com/chatwoot/chatwoot/issues/9767 Fixes https://github.com/chatwoot/chatwoot/issues/10156 Fixes https://github.com/chatwoot/chatwoot/issues/6031 Fixes https://github.com/chatwoot/chatwoot/issues/5696 Fixes https://github.com/chatwoot/chatwoot/issues/9250 Fixes https://github.com/chatwoot/chatwoot/issues/9762 --------- Co-authored-by: Pranav <pranavrajs@gmail.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
This commit is contained in:
@@ -40,7 +40,7 @@ class Macro < ApplicationRecord
|
||||
|
||||
def self.with_visibility(user, _params)
|
||||
records = Current.account.macros.global
|
||||
records = records.or(personal.where(created_by_id: user.id))
|
||||
records = records.or(personal.where(created_by_id: user.id, account_id: Current.account.id))
|
||||
records.order(:id)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user