Skip to content

Commit 5646b1d

Browse files
author
Stefan Vitanov
committed
add apps to DeleteAccount
1 parent b551786 commit 5646b1d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/app_services.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func (app *application) serUpdateAccountPreferences(id string, appID string, org
133133
}
134134

135135
func (app *application) serDeleteAccount(id string, apps []string) error {
136-
return app.auth.DeleteAccount(id)
136+
return app.auth.DeleteAccount(id, apps)
137137
}
138138

139139
func (app *application) serGetAccounts(limit int, offset int, appID string, orgID string, accountID *string, firstName *string, lastName *string, authType *string,

core/auth/interfaces.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ type APIs interface {
413413
CheckGroups(context storage.TransactionContext, appOrg *model.ApplicationOrganization, groupIDs []string, assignerPermissions []string, revoke bool) ([]model.AppOrgGroup, error)
414414

415415
//DeleteAccount deletes an account for the given id
416-
DeleteAccount(id string) error
416+
DeleteAccount(id string, apps []string) error
417417

418418
//GetAdminToken returns an admin token for the specified application and organization
419419
GetAdminToken(claims tokenauth.Claims, appID string, orgID string, l *logs.Log) (string, error)

0 commit comments

Comments
 (0)