Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRubén Dávila <rdavila84@gmail.com>2016-02-11 00:05:04 +0300
committerRobert Speicher <rspeicher@gmail.com>2016-02-19 21:14:53 +0300
commit2ea5b37f2effacc98dd15e1d86386c40bc719200 (patch)
tree3cc551ea745d9b89f63744d30417f2de0a520573 /app/helpers/commits_helper.rb
parent11345866d8ae3198c0f5523e8dee1e14cb21b3c7 (diff)
Some fixes and refactors for code related to forks.
Diffstat (limited to 'app/helpers/commits_helper.rb')
-rw-r--r--app/helpers/commits_helper.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/helpers/commits_helper.rb b/app/helpers/commits_helper.rb
index b37bdaf5f07..d5b1feed931 100644
--- a/app/helpers/commits_helper.rb
+++ b/app/helpers/commits_helper.rb
@@ -124,6 +124,8 @@ module CommitsHelper
end
def revert_commit_link(show_modal_condition, continue_to_path)
+ return unless current_user
+
if show_modal_condition
link_to('Revert', '#modal-revert-commit',
'data-target' => '#modal-revert-commit',