Commit 3c74ac30 by Hugo Häggmark Committed by Leonard Gram

teams: update only the selected user

parent 074ebf0f
......@@ -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
})
......
......@@ -100,7 +100,7 @@ export const dashboardPermissionLevels: DashboardPermissionInfo[] = [
];
export enum TeamPermissionLevel {
Member = 0,
Member = 1,
Admin = 4,
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment