user deactivitation
parent
6eba87d0a2
commit
8b056c3191
|
@ -733,8 +733,6 @@ func AllUsersDeleteUser(userId string) {
|
|||
}
|
||||
|
||||
func AllUsersUserDeactivation(userId string, deactivate bool) {
|
||||
log.Debug().Msgf("deactivation %v %v", userId, deactivate)
|
||||
|
||||
database.DB.Model(&structs.User{}).Select("deactivated").Where("id = ?", userId).Updates(structs.User{
|
||||
Deactivated: deactivate,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue