iachat/enterprise/app/models/enterprise/account_user.rb
Sojan Jose b61ad6e41a
feat: Add APIs to manage custom roles in Chatwoot (#9995)
Co-authored-by: Pranav <pranavrajs@gmail.com>
2024-08-23 17:18:28 +05:30

6 lines
138 B
Ruby

module Enterprise::AccountUser
def permissions
custom_role.present? ? (custom_role.permissions + ['custom_role']) : super
end
end