mirror of
https://github.com/grafana/grafana.git
synced 2025-01-21 22:13:38 -06:00
teams: update only the selected user
This commit is contained in:
parent
074ebf0f48
commit
3c74ac3044
@ -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,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user