diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-19 19:48:48 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-19 19:48:48 +0300 |
commit | b3ef63a0a547610ba8ac6435674eabc5a2130c3d (patch) | |
tree | b90c2d38c8ea93941fd0067e89a0e03f60b00c9c /app/controllers/application_controller.rb | |
parent | cf8b465cb96f5aa6e53fec60c0d6e62ad1ccbc5e (diff) | |
download | gitlab-ce-b3ef63a0a547610ba8ac6435674eabc5a2130c3d.tar.gz |
Migrate global project taks. Removed more teams related functionality
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index fda05feefc0..e84220c1e57 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -95,14 +95,6 @@ class ApplicationController < ActionController::Base return access_denied! unless can?(current_user, :create_team, nil) end - def authorize_manage_user_team! - return access_denied! unless user_team.present? && can?(current_user, :manage_user_team, user_team) - end - - def authorize_admin_user_team! - return access_denied! unless user_team.present? && can?(current_user, :admin_user_team, user_team) - end - def access_denied! render "errors/access_denied", layout: "errors", status: 404 end |