clean up teams api messaging and permissions
This commit is contained in:
1 parent
d8fdba77db
commit
06230ad2e9
4 files changed
+12
-16
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user