Commit a635b9da97b0e104b8ac1a846344ec8a4abd3123
1 parent
fc3c0592
Exists in
master
and in
4 other branches
Revert "Do not allow removal of a project owner user."
This reverts commit 927d0cc2674d21f470a29e7a10577707172f13c6.
Showing
1 changed file
with
0 additions
and
1 deletions
Show diff stats
app/controllers/admin/users_controller.rb
... | ... | @@ -98,7 +98,6 @@ class Admin::UsersController < AdminController |
98 | 98 | |
99 | 99 | def destroy |
100 | 100 | @admin_user = User.find(params[:id]) |
101 | - redirect_to admin_users_url, notice: 'User is a project owner, cannot be removed.' and return if @admin_user.my_own_projects.count > 0 | |
102 | 101 | @admin_user.destroy |
103 | 102 | |
104 | 103 | respond_to do |format| | ... | ... |