mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 21:26:07 +10:00
10 lines
280 B
Ruby
10 lines
280 B
Ruby
class Admin::MembersController < Admin::ApplicationController
|
|
def destroy
|
|
user = User.find_by_username(params[:id])
|
|
project = Project.find_with_namespace(params[:project_id])
|
|
project.users_projects.where(user_id: user).first.destroy
|
|
|
|
redirect_to :back
|
|
end
|
|
end
|