Sojan Jose
9898ccee9e
chore: Enforce custom role permissions on conversation access ( #12583 )
...
## Summary
- ensure conversation lookup uses the permission filter before fetching
records
- add request specs covering custom role access to unassigned
conversations
## Testing
- bundle exec rspec
spec/enterprise/controllers/api/v1/accounts/conversations_controller_spec.rb
------
https://chatgpt.com/codex/tasks/task_e_68de1f62b9b883268a54882e608a8bb8
2025-10-22 20:23:37 -07:00
Sojan Jose
273c277d47
feat: Add conversation delete feature ( #11677 )
...
<img width="1240" alt="Screenshot 2025-06-05 at 12 39 04 AM"
src="https://github.com/user-attachments/assets/0071cd23-38c3-4638-946e-f1fbd11ec845 "
/>
## Changes
Give the admins an option to delete conversation via the context menu
- enable conversation deletion in routes and controller
- expose delete API on conversations
- add delete option in conversation context menu and integrate with card
and list
- implement store action and mutation for delete
- update i18n with new strings
fixes: https://github.com/chatwoot/chatwoot/issues/947
---------
Co-authored-by: iamsivin <iamsivin@gmail.com >
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
Co-authored-by: Pranav <pranavrajs@gmail.com >
2025-06-05 15:53:17 -05:00
Sojan Jose
3548948c92
fix: Allow users with report_manage permission to access CSAT reports ( #11625 )
...
- Extended CsatSurveyResponsePolicy to support report_manage permission
- Added enterprise extension module following existing pattern
- Users with report_manage custom role can now access CSAT index,
metrics, and download
- Added comprehensive tests for both base and enterprise policy behavior
2025-05-29 12:09:03 -06:00
Sojan Jose
1a78a9243f
chore: Clean up report & knowledge base policies ( #11234 )
...
- Removes the portal_members table and all associated records
- Updates policies to use custom roles with knowledge_base_manage
permission
- Updates controllers, models, and views to work without portal
membership
- Adds tests for the new permission model
2025-04-03 16:00:32 -07:00
Sojan Jose
b7a583b2c4
Feature: Ability to switch between multiple accounts ( #881 )
...
* Feature: Ability to switch between multiple accounts
* Fix rubocop
* Fix assigned inboxes
* fix auth json
* Add account switcher in UI
* fix ordering on administrate
* Add switch accounts to sidebar
* add account id
* Fix schema.rb timestamp
* Revert "add account id"
This reverts commit 27570f50ef584cb9a5f69454f43f630b318c8807.
* Add a check for account
Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com >
2020-05-26 22:38:48 +05:30
Sojan Jose
1cfa756d49
Chore: APIs for agent bots ( #676 )
...
Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com >
2020-04-07 10:41:18 +05:30
Sojan Jose
8b4df986bf
Chore: Enable Users to create multiple accounts ( #440 )
...
Addresses: #402
- migrations to split roles and other attributes from users table
- make changes in code to accommodate this change
Co-authored-by: Sojan Jose <sojan@pepalo.com >
Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com >
2020-03-07 12:18:16 +05:30
Mukesh Chaudhary
96f8070e79
Add specs for Policies ( #392 )
...
* Add specs for Policies
* Fix CI issues
2019-12-28 01:27:59 +05:30