teams: update only the selected user

This commit is contained in:
Hugo Häggmark 2019-03-08 12:25:10 +01:00 committed by Leonard Gram
parent 074ebf0f48
commit 3c74ac3044
2 changed files with 2 additions and 2 deletions

View File

@ -272,7 +272,7 @@ func UpdateTeamMember(cmd *m.UpdateTeamMemberCommand) error {
}
member.Permission = cmd.Permission
_, err = sess.Update(member)
_, err = sess.Where("org_id=? and team_id=? and user_id=?", cmd.OrgId, cmd.TeamId, cmd.UserId).Update(member)
return err
})

View File

@ -100,7 +100,7 @@ export const dashboardPermissionLevels: DashboardPermissionInfo[] = [
];
export enum TeamPermissionLevel {
Member = 0,
Member = 1,
Admin = 4,
}