summaryrefslogtreecommitdiffstats
path: root/app/views/roles
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-09-20 19:26:58 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-09-20 19:26:58 +0000
commit5328c4adcb6c34978652b5245b0de0b98903a6d1 (patch)
tree3c1cee447f5b2c34afc6aecb51980fad40ce258c /app/views/roles
parent30b3e796ffe5ea5beb6fbf03d3f000e8968f89bb (diff)
downloadredmine-5328c4adcb6c34978652b5245b0de0b98903a6d1.tar.gz
redmine-5328c4adcb6c34978652b5245b0de0b98903a6d1.zip
Anonymous users should always see public issues only (#11872).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10437 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/roles')
-rw-r--r--app/views/roles/_form.html.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/roles/_form.html.erb b/app/views/roles/_form.html.erb
index 8ae0a604f..d028c2f1c 100644
--- a/app/views/roles/_form.html.erb
+++ b/app/views/roles/_form.html.erb
@@ -1,5 +1,6 @@
<%= error_messages_for 'role' %>
+<% unless @role.anonymous? %>
<div class="box tabular">
<% unless @role.builtin? %>
<p><%= f.text_field :name, :required => true %></p>
@@ -11,6 +12,7 @@
<%= select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@roles, :id, :name, params[:copy_workflow_from] || @copy_from.try(:id))) %></p>
<% end %>
</div>
+<% end %>
<h3><%= l(:label_permissions) %></h3>
<div class="box tabular" id="permissions">