Only project admin have access to deploy_keys section
This commit is contained in:
parent
f7b911d239
commit
b85ae02856
|
@ -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])
|
||||
|
|
Loading…
Reference in a new issue