# HG changeset patch # User luisf # Date 1316798101 -3600 # Node ID ebca856bd627a5ae0904ed6f1e1523534e19aaf7 # Parent a1e0728d1e02c95bf9b0338cf6a8b5e2a9129e3c Fixes Bug #313: Only shows projects for which user is allowed to manage bibliography diff -r a1e0728d1e02 -r ebca856bd627 vendor/plugins/redmine_bibliography/app/helpers/publications_helper.rb --- a/vendor/plugins/redmine_bibliography/app/helpers/publications_helper.rb Fri Sep 23 12:23:25 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/helpers/publications_helper.rb Fri Sep 23 18:15:01 2011 +0100 @@ -12,8 +12,10 @@ def projects_check_box_tags(name, projects) s = '' projects.sort.each do |project| - s << "\n" - s << '
' + if User.current.allowed_to?(:edit_publication, project) + s << "\n" + s << '
' + end end s