Revert "Do not allow removal of a project owner user."

This reverts commit 927d0cc267.
This commit is contained in:
Valeriy Sizov 2012-10-08 15:57:30 +03:00
parent fc3c0592db
commit a635b9da97

View file

@ -98,7 +98,6 @@ class Admin::UsersController < AdminController
def destroy
@admin_user = User.find(params[:id])
redirect_to admin_users_url, notice: 'User is a project owner, cannot be removed.' and return if @admin_user.my_own_projects.count > 0
@admin_user.destroy
respond_to do |format|