added the UserWasRemoved flag to make api aware of what happened to return correct message to UI
This commit is contained in:
1 parent
5b5cb6622d
commit
9585dc7825
3 files changed
+7
No files matched your search
@@ -194,6 +194,8 @@ func RemoveOrgUser(cmd *m.RemoveOrgUserCommand) error {
|
||||
if err := deleteUserInTransaction(sess, &m.DeleteUserCommand{UserId: user.Id}); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
cmd.UserWasRemoved = true
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user