Project

General

Profile

Defect #35308 » fix_add_news_button.patch

patch by Alexander Meindl - Go MAEDA, 2021-05-25 11:31

View differences:

app/views/news/index.html.erb
2 2
<%= link_to(l(:label_news_new),
3 3
            (@project ? project_news_index_path(@project) : news_index_path),
4 4
            :class => 'icon icon-add',
5
            :onclick => 'showAndScrollTo("add-news", "news_title"); return false;') if (@project.nil? || (@project && User.current.allowed_to?(:manage_news, @project))) %>
5
            :onclick => 'showAndScrollTo("add-news", "news_title"); return false;') if User.current.allowed_to?(:manage_news, @project, global: true) %>
6 6
<%= watcher_link(@project.enabled_module('news'), User.current) if @project && User.current.logged? %>
7 7
</div>
8 8

  
(1-1/2)