diff --git a/app/controllers/deploy_keys_controller.rb b/app/controllers/deploy_keys_controller.rb index 2a5b1bce..6e04bb4f 100644 --- a/app/controllers/deploy_keys_controller.rb +++ b/app/controllers/deploy_keys_controller.rb @@ -2,8 +2,10 @@ class DeployKeysController < ApplicationController respond_to :js layout "project" before_filter :project - # before_filter :authorize_admin_project! - # before_filter :require_non_empty_project + + # Authorize + before_filter :add_project_abilities + before_filter :authorize_admin_project! def project @project ||= Project.find_by_code(params[:project_id])