app/controllers/faalis/api/v1/users_controller.rb in faalis-0.24.3 vs app/controllers/faalis/api/v1/users_controller.rb in faalis-0.24.4
- old
+ new
@@ -16,10 +16,10 @@
end
def destroy
ids = params[:id].split(",")
@users = User.where(:id => ids)
- authorize! :destory, @groups
+ authorize! :destory, @users
@users.destroy_all
end
def update
@user = User.find(params[:id])