diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-03-06 02:26:40 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-03-06 02:26:40 +0400 |
commit | cb59aade4e568e6146a966362385ac41af4dc604 (patch) | |
tree | 5b755ded0186a81c15d8da2b7b4ce865a5b73a0d /app/controllers | |
parent | 74f8bc7298f112c2d414c6f71be054adce01012a (diff) |
Cleaning and refactoring
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/admin/projects_controller.rb | 3 | ||||
-rw-r--r-- | app/controllers/admin/users_controller.rb | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/app/controllers/admin/projects_controller.rb b/app/controllers/admin/projects_controller.rb index 868bec7c9fe..8f1376540c8 100644 --- a/app/controllers/admin/projects_controller.rb +++ b/app/controllers/admin/projects_controller.rb @@ -31,8 +31,7 @@ class Admin::ProjectsController < ApplicationController UsersProject.bulk_import( @admin_project, params[:user_ids], - params[:project_access], - params[:repo_access] + params[:project_access] ) redirect_to [:admin, @admin_project], notice: 'Project was successfully updated.' diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb index 216431456c0..d7089fad27e 100644 --- a/app/controllers/admin/users_controller.rb +++ b/app/controllers/admin/users_controller.rb @@ -23,8 +23,7 @@ class Admin::UsersController < ApplicationController UsersProject.user_bulk_import( @admin_user, params[:project_ids], - params[:project_access], - params[:repo_access] + params[:project_access] ) redirect_to [:admin, @admin_user], notice: 'Teams were successfully updated.' |