Mailinglist Archive: opensuse-buildservice (258 mails)

< Previous Next >
Re: [opensuse-buildservice] [PATCH] Unable to delete user via API
Hi,

On 2010-08-08 13:38:45 -0600, Srinidhi B wrote:
If you try to delete a user from the api (Rails app), you will get a message
saying:

"You sent an invalid request!"

After looking at api/app/controllers/active_rbac/user_controller.rb, I found
that you can only POST to destroy and can only GET on delete.

So here's another trivial patch that allows deletion of users from the Rails
app.

User deletion doesn't "work" at the moment. The issue with this patch is that
the "destroy" method just removes the user from the database and doesn't update
the project/package metadata relations => the db is an "inconsistent" state.


Marcus
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References