teams: refactor so that you can only delete teams if you are team admin

This commit is contained in:
Hugo Häggmark
2019-03-19 14:01:21 +01:00
committed by Leonard Gram
parent a615b78f8a
commit 53c74fa2f5
8 changed files with 60 additions and 16 deletions
+7 -6
View File
@@ -73,12 +73,13 @@ type SearchTeamsQuery struct {
}
type TeamDTO struct {
Id int64 `json:"id"`
OrgId int64 `json:"orgId"`
Name string `json:"name"`
Email string `json:"email"`
AvatarUrl string `json:"avatarUrl"`
MemberCount int64 `json:"memberCount"`
Id int64 `json:"id"`
OrgId int64 `json:"orgId"`
Name string `json:"name"`
Email string `json:"email"`
AvatarUrl string `json:"avatarUrl"`
MemberCount int64 `json:"memberCount"`
Permission PermissionType `json:"permission"`
}
type SearchTeamQueryResult struct {