jf-actvitity: functioning route, ombi fixes
forgot to switch branches before doing a fix for #455, so it's in here too. OmbiUserByJfID/getOmbiUser takes an optional email *string, to optionally pass an override email address to search with, used when changing it.
This commit is contained in:
@@ -207,9 +207,10 @@ func (app *appContext) SetUserDisabled(user mediabrowser.User, disabled bool) (e
|
||||
}
|
||||
|
||||
func (app *appContext) DeleteUser(user mediabrowser.User) (err error, deleted bool) {
|
||||
// FIXME: Add DeleteContactMethod to TPS
|
||||
if app.ombi != nil {
|
||||
var tpUser map[string]any
|
||||
tpUser, err = app.getOmbiUser(user.ID)
|
||||
tpUser, err = app.getOmbiUser(user.ID, nil)
|
||||
if err == nil {
|
||||
if id, ok := tpUser["id"]; ok {
|
||||
err = app.ombi.DeleteUser(id.(string))
|
||||
|
||||
Reference in New Issue
Block a user