mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
clean up teams api messaging and permissions
This commit is contained in:
parent
d8fdba77db
commit
06230ad2e9
4 changed files with 12 additions and 16 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue