opnform-host-nginx/api/app
Chirag Chhatrala f344764f52
Implement EnsureUserHasWorkspace Trait and Integrate into Controllers… (#741)
* Implement EnsureUserHasWorkspace Trait and Integrate into Controllers and Jobs

- Introduced the EnsureUserHasWorkspace trait to ensure users have at least one workspace when they are detached from a workspace.
- Integrated the trait into WorkspaceUserController to enforce workspace checks during user detachment.
- Updated RemoveWorkspaceGuests job to utilize the new trait for ensuring users have a workspace after detachment.
- Modified UserWorkspace model to call the ensureUserHasWorkspace method upon deletion, maintaining workspace integrity.

These changes enhance user management by ensuring that users always have a workspace, improving overall application stability.

* Add test

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
2025-04-28 18:03:38 +02:00
..
Console Update tax rate for Finland in GenerateTaxExport command 2025-04-28 14:25:23 +02:00
Enums Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
Events Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
Exceptions Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
Exports Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
Http Implement EnsureUserHasWorkspace Trait and Integrate into Controllers… (#741) 2025-04-28 18:03:38 +02:00
Integrations Stripe Payment (#679) 2025-04-10 12:04:25 +02:00
Jobs Implement EnsureUserHasWorkspace Trait and Integrate into Controllers… (#741) 2025-04-28 18:03:38 +02:00
Listeners Custom SMTP Settings (#561) 2024-09-24 12:16:20 +02:00
Mail Apply Mentions everywhere (#595) 2024-10-22 10:34:29 +02:00
Models Implement EnsureUserHasWorkspace Trait and Integrate into Controllers… (#741) 2025-04-28 18:03:38 +02:00
Notifications Improve Email Notification Message-ID and Threading Generation 2025-03-06 13:21:12 +08:00
Open Enhance redirect URL handling and MentionParser functionality (#639) 2024-12-10 12:26:01 +01:00
Policies Stripe Payment (#679) 2025-04-10 12:04:25 +02:00
Providers Stripe Payment (#679) 2025-04-10 12:04:25 +02:00
Rules Stripe Payment (#679) 2025-04-10 12:04:25 +02:00
Service Partial submissions (#705) 2025-04-28 17:33:55 +02:00
Traits Implement EnsureUserHasWorkspace Trait and Integrate into Controllers… (#741) 2025-04-28 18:03:38 +02:00
helpers.php Custom SMTP Settings (#561) 2024-09-24 12:16:20 +02:00