X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/037585db3933a2954b43bd4b30ea5e30ade00be2..3763cbc7d4cdf3fdead477ee093b3c82aabd49fe:/app/controllers/user_roles_controller.rb?ds=sidebyside diff --git a/app/controllers/user_roles_controller.rb b/app/controllers/user_roles_controller.rb index 1cfbaf977..9c0339c7a 100644 --- a/app/controllers/user_roles_controller.rb +++ b/app/controllers/user_roles_controller.rb @@ -15,7 +15,7 @@ class UserRolesController < ApplicationController end def revoke - UserRole.delete_all(:user_id => @this_user.id, :role => @role) + UserRole.where(:user_id => @this_user.id, :role => @role).delete_all redirect_to :controller => "user", :action => "view", :display_name => @this_user.display_name end