Rename "Organization" to "Team" across web app and update related services
Renamed all instances of "Organization" with "Team" across the entire web application to reflect the latest change in terminology. This further extends to renaming related services, components, and their respective invocation instances. Separate billing permissions have been defined for Team accounts, and security actions have been updated in SQL schema along with some layout adjustments.
This commit is contained in:
@@ -17,6 +17,11 @@ export async function deleteTeamAccountAction(formData: FormData) {
|
||||
);
|
||||
|
||||
const client = getSupabaseServerActionClient();
|
||||
const auth = await requireAuth(client);
|
||||
|
||||
if (auth.error) {
|
||||
throw new Error('Authentication required');
|
||||
}
|
||||
|
||||
// Check if the user has the necessary permissions to delete the team account
|
||||
await assertUserPermissionsToDeleteTeamAccount(client, params.accountId);
|
||||
@@ -29,7 +34,10 @@ export async function deleteTeamAccountAction(formData: FormData) {
|
||||
getSupabaseServerActionClient({
|
||||
admin: true,
|
||||
}),
|
||||
params,
|
||||
{
|
||||
accountId: params.accountId,
|
||||
userId: auth.data.user.id,
|
||||
},
|
||||
);
|
||||
|
||||
return redirect('/home');
|
||||
|
||||
Reference in New Issue
Block a user