Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMayra Cabrera <mcabrera@gitlab.com>2018-04-05 02:43:41 +0300
committerMayra Cabrera <mcabrera@gitlab.com>2018-04-07 05:20:16 +0300
commit171b2625b128e5954ce0a150a4fc923a22164e4e (patch)
tree834586c27477a404e71fe2fac9d17ecf3e495e58 /app/controllers/projects/deploy_tokens_controller.rb
parent7deab3172257bef7818ce834c1e0709432ddd5e0 (diff)
Addreses backend review suggestions
- Remove extra method for authorize_admin_project - Ensure project presence - Rename 'read_repo' to 'read_repository' to be more verbose
Diffstat (limited to 'app/controllers/projects/deploy_tokens_controller.rb')
-rw-r--r--app/controllers/projects/deploy_tokens_controller.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/controllers/projects/deploy_tokens_controller.rb b/app/controllers/projects/deploy_tokens_controller.rb
index 1b1bd461b27..a7d9590ba19 100644
--- a/app/controllers/projects/deploy_tokens_controller.rb
+++ b/app/controllers/projects/deploy_tokens_controller.rb
@@ -23,8 +23,4 @@ class Projects::DeployTokensController < Projects::ApplicationController
def deploy_token_params
params.require(:deploy_token).permit(:name, :expires_at, scopes: [])
end
-
- def authorize_admin_project!
- return render_404 unless can?(current_user, :admin_project, @project)
- end
end