diff options
author | James Edwards-Jones <jedwardsjones@gitlab.com> | 2019-05-13 15:50:23 +0700 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2019-05-15 17:36:50 +0700 |
commit | bedb9a3e6d644e4d8c71f92038ce31c9383e0887 (patch) | |
tree | 81f13a4061a2bd00518a975e3e0b11c4c0a3bab3 /app/controllers/projects/serverless | |
parent | 224c01033fa8eafe53dd1b1d2dfdd90605a000bb (diff) | |
download | gitlab-ce-bedb9a3e6d644e4d8c71f92038ce31c9383e0887.tar.gz |
Avoid passing not_found_or_authorized_proc around
Since this needs to be called on every find_routable!(Project, ...
we can instead move it to a RoutableActions check.
Diffstat (limited to 'app/controllers/projects/serverless')
-rw-r--r-- | app/controllers/projects/serverless/functions_controller.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/controllers/projects/serverless/functions_controller.rb b/app/controllers/projects/serverless/functions_controller.rb index 8c3d141c888..79030da64d3 100644 --- a/app/controllers/projects/serverless/functions_controller.rb +++ b/app/controllers/projects/serverless/functions_controller.rb @@ -3,8 +3,6 @@ module Projects module Serverless class FunctionsController < Projects::ApplicationController - include ProjectUnauthorized - before_action :authorize_read_cluster! def index |