diff --git a/app/http/endpoints/api/team/addmember.go b/app/http/endpoints/api/team/addmember.go index dfa0a04..153a259 100644 --- a/app/http/endpoints/api/team/addmember.go +++ b/app/http/endpoints/api/team/addmember.go @@ -29,6 +29,11 @@ func AddMember(ctx *gin.Context) { return } + if entityType == entityTypeUser { + ctx.JSON(400, utils.ErrorStr("Only roles may be added as support representatives")) + return + } + if entityType == entityTypeRole && snowflake == guildId { ctx.JSON(400, utils.ErrorStr("You cannot add the @everyone role as staff")) return diff --git a/frontend/src/views/Teams.svelte b/frontend/src/views/Teams.svelte index 25060e7..bd48bee 100644 --- a/frontend/src/views/Teams.svelte +++ b/frontend/src/views/Teams.svelte @@ -58,19 +58,6 @@