Commit b85ae02856a522838898442953157006501dde3e

Authored by miks
1 parent f7b911d2

Only project admin have access to deploy_keys section

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
app/controllers/deploy_keys_controller.rb
... ... @@ -2,8 +2,10 @@ class DeployKeysController < ApplicationController
2 2 respond_to :js
3 3 layout "project"
4 4 before_filter :project
5   - # before_filter :authorize_admin_project!
6   - # before_filter :require_non_empty_project
  5 +
  6 + # Authorize
  7 + before_filter :add_project_abilities
  8 + before_filter :authorize_admin_project!
7 9  
8 10 def project
9 11 @project ||= Project.find_by_code(params[:project_id])
... ...