clean up teams api messaging and permissions

This commit is contained in:
Francis Cao 2025-10-21 15:35:17 -07:00
parent d8fdba77db
commit 06230ad2e9
4 changed files with 12 additions and 16 deletions

View file

@ -39,10 +39,6 @@ export async function canDeleteTeam({ user }: Auth, teamId: string) {
return teamUser && hasPermission(teamUser.role, PERMISSIONS.teamDelete);
}
export async function canAddUserToTeam({ user }: Auth) {
return user.isAdmin;
}
export async function canDeleteTeamUser({ user }: Auth, teamId: string, removeUserId: string) {
if (user.isAdmin) {
return true;