buster/apps/api/libs/sharing/src
dal 1e705c9828
Implement collection access checks for chats and dashboards
- Updated `get_chat_handler` to check for collection access when a user lacks direct permission.
- Modified `get_dashboard_handler` to first verify collection access before checking chat access.
- Added `check_chat_collection_access` function to validate user access to chats via collections.
- Enhanced `check_metric_dashboard_access` to include collection access checks concurrently with other permission checks.

This change improves the permission model by allowing access to chats and dashboards through associated collections, enhancing user experience and security.
2025-07-17 14:01:45 -06:00
..
tests Mastra braintrust (#391) 2025-07-02 14:33:40 -07:00
asset_access_checks.rs Implement collection access checks for chats and dashboards 2025-07-17 14:01:45 -06:00
create_asset_permission.rs Mastra braintrust (#391) 2025-07-02 14:33:40 -07:00
errors.rs Mastra braintrust (#391) 2025-07-02 14:33:40 -07:00
lib.rs Implement collection access checks for chats and dashboards 2025-07-17 14:01:45 -06:00
list_asset_permissions.rs Mastra braintrust (#391) 2025-07-02 14:33:40 -07:00
remove_asset_permissions.rs Mastra braintrust (#391) 2025-07-02 14:33:40 -07:00
types.rs Mastra braintrust (#391) 2025-07-02 14:33:40 -07:00
user_lookup.rs Mastra braintrust (#391) 2025-07-02 14:33:40 -07:00