Mercurial > hg > soundsoftware-site
diff vendor/plugins/redmine_bibliography/app/views/projects/show.rhtml @ 626:e2663e0bd5a6 feature_36
Continued work on permissions (Feature #241 and Feature #242).
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 24 Aug 2011 17:18:11 +0100 |
parents | 2df99e8d191e |
children | 65abc6b39292 |
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/views/projects/show.rhtml Wed Aug 24 15:44:55 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/views/projects/show.rhtml Wed Aug 24 17:18:11 2011 +0100 @@ -4,7 +4,9 @@ <% end %> <% if @project.module_enabled? :redmine_bibliography %> - <%= link_to l(:label_add_publication_to_project), {:controller => 'publications', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %> + <% if User.current.allowed_to?(:add_publication, @project) %> + <%= link_to l(:label_add_publication_to_project), {:controller => 'publications', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %> + <% end %> <% end %> </div>