diff options
| author | Rubén Dávila <rdavila84@gmail.com> | 2016-02-10 18:02:46 -0500 |
|---|---|---|
| committer | Robert Speicher <rspeicher@gmail.com> | 2016-02-19 13:14:53 -0500 |
| commit | b8295fc3232a3d9ca2af524225f9a66ab7735926 (patch) | |
| tree | 8f8d9109dff563618bdaa585c17305ddff8d8133 /app/controllers/projects | |
| parent | ccd2a8d6b577e9a5a0ea3a350e6bc039550bc1ae (diff) | |
| download | gitlab-ce-b8295fc3232a3d9ca2af524225f9a66ab7735926.tar.gz | |
Fix build and add specs
Diffstat (limited to 'app/controllers/projects')
| -rw-r--r-- | app/controllers/projects/application_controller.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/app/controllers/projects/application_controller.rb b/app/controllers/projects/application_controller.rb index e436aed1240..a326bc58215 100644 --- a/app/controllers/projects/application_controller.rb +++ b/app/controllers/projects/application_controller.rb @@ -3,7 +3,6 @@ class Projects::ApplicationController < ApplicationController before_action :repository layout 'project' - helper_method :can_collaborate_with_project? def authenticate_user! # Restrict access to Projects area only # for non-signed users @@ -37,11 +36,4 @@ class Projects::ApplicationController < ApplicationController def builds_enabled return render_404 unless @project.builds_enabled? end - - def can_collaborate_with_project?(project = nil) - project ||= @project - - can?(current_user, :push_code, project) || - (current_user && current_user.already_forked?(project)) - end end |
