Commit b85ae028 authored by miks's avatar miks

Only project admin have access to deploy_keys section

parent f7b911d2
...@@ -2,8 +2,10 @@ class DeployKeysController < ApplicationController ...@@ -2,8 +2,10 @@ class DeployKeysController < ApplicationController
respond_to :js respond_to :js
layout "project" layout "project"
before_filter :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 def project
@project ||= Project.find_by_code(params[:project_id]) @project ||= Project.find_by_code(params[:project_id])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment