Skip to content
Snippets Groups Projects
Commit 65d9f8c1 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix notification issue

parent 76a4cbe4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -104,7 +104,7 @@ class NotificationService
 
opts = { noteable_type: note.noteable_type, project_id: note.project_id }
 
if note.commit_id
if note.commit_id.present?
opts.merge!(commit_id: note.commit_id)
recipients = [note.commit_author]
else
Loading
Loading
Loading
Loading
@@ -13,7 +13,7 @@
= link_to project_path(@project), title: "Project" do
%i.icon-home
 
- if @project.repo_exists?
- unless @project.empty_repo?
- if can? current_user, :download_code, @project
= nav_link(controller: %w(tree blob blame)) do
= link_to 'Files', project_tree_path(@project, @ref || @repository.root_ref)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment