From 7b0dca2d6d071381113d723f673ec49001ca4756 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 16 Dec 2006 12:10:23 +0000 Subject: [PATCH] queries crud links displayed according permissions git-svn-id: http://redmine.rubyforge.org/svn/branches/work@92 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- queries/trunk/app/views/projects/list_issues.rhtml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/queries/trunk/app/views/projects/list_issues.rhtml b/queries/trunk/app/views/projects/list_issues.rhtml index 1add26497..cebddff3a 100644 --- a/queries/trunk/app/views/projects/list_issues.rhtml +++ b/queries/trunk/app/views/projects/list_issues.rhtml @@ -20,7 +20,7 @@ :with => "Form.serialize('query_form')" %> | <%= link_to l(:button_clear), :controller => 'projects', :action => 'list_issues', :id => @project, :set_filter => 1 %> - <% if loggedin? %> + <% if authorize_for('projects', 'add_query') %> | <%= link_to_remote l(:button_save), :url => { :controller => 'projects', :action => "add_query", :id => @project }, @@ -32,11 +32,12 @@ <% else %> + <% if authorize_for('projects', 'add_query') %>
<%= link_to l(:button_edit), :controller => 'queries', :action => 'edit', :id => @query %> <%= link_to l(:button_delete), {:controller => 'queries', :action => 'destroy', :id => @query}, :confirm => l(:text_are_you_sure), :post => true %>
- + <% end %>

<%= @query.name %>

<% end %> <%= error_messages_for 'query' %>