mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge pull request #3157 from utkarshcmu/postgres
Fixed user deletion in Postgres SQL
This commit is contained in:
commit
56e2082205
@ -321,7 +321,7 @@ func DeleteUser(cmd *m.DeleteUserCommand) error {
|
|||||||
return inTransaction(func(sess *xorm.Session) error {
|
return inTransaction(func(sess *xorm.Session) error {
|
||||||
deletes := []string{
|
deletes := []string{
|
||||||
"DELETE FROM star WHERE user_id = ?",
|
"DELETE FROM star WHERE user_id = ?",
|
||||||
"DELETE FROM user WHERE id = ?",
|
"DELETE FROM " + dialect.Quote("user") + " WHERE id = ?",
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, sql := range deletes {
|
for _, sql := range deletes {
|
||||||
|
Loading…
Reference in New Issue
Block a user