diff --git a/app/finders/issuable_finder.rb b/app/finders/issuable_finder.rb index c407dfc163a9bdd1ed50c98b033b44ba65106c4c..30ec8f60098ec4637884ca0e1d96c209413844e2 100644 --- a/app/finders/issuable_finder.rb +++ b/app/finders/issuable_finder.rb @@ -62,10 +62,10 @@ class IssuableFinder if project? @project = Project.find(params[:project_id]) - + unless Ability.abilities.allowed?(current_user, :read_project, @project) @project = nil - end + end else @project = nil end