diff options
Diffstat (limited to 'app/views/issues')
-rw-r--r-- | app/views/issues/_attributes.html.erb | 2 | ||||
-rw-r--r-- | app/views/issues/_form.html.erb | 2 | ||||
-rw-r--r-- | app/views/issues/new.html.erb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/app/views/issues/_attributes.html.erb b/app/views/issues/_attributes.html.erb index c4a087dae..6303ccf79 100644 --- a/app/views/issues/_attributes.html.erb +++ b/app/views/issues/_attributes.html.erb @@ -31,7 +31,7 @@ </div> <div class="splitcontentright"> -<% if User.current.allowed_to?(:manage_subtasks, @project) %> +<% if @issue.safe_attribute? 'parent_issue_id' %> <p id="parent_issue"><%= f.text_field :parent_issue_id, :size => 10 %></p> <div id="parent_issue_candidates" class="autocomplete"></div> <%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %> diff --git a/app/views/issues/_form.html.erb b/app/views/issues/_form.html.erb index d8dd91ee6..4b4cbccb0 100644 --- a/app/views/issues/_form.html.erb +++ b/app/views/issues/_form.html.erb @@ -1,6 +1,6 @@ <%= call_hook(:view_issues_form_details_top, { :issue => @issue, :form => f }) %> -<% if @issue.safe_attribute_names.include?('is_private') %> +<% if @issue.safe_attribute? 'is_private' %> <p style="float:right; margin-right:1em;"> <label class="inline" for="issue_is_private" id="issue_is_private_label"><%= f.check_box :is_private, :no_label => true %> <%= l(:field_is_private) %></label> </p> diff --git a/app/views/issues/new.html.erb b/app/views/issues/new.html.erb index 48d786879..615263b23 100644 --- a/app/views/issues/new.html.erb +++ b/app/views/issues/new.html.erb @@ -10,7 +10,7 @@ <p id="attachments_form"><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p> - <% if User.current.allowed_to?(:add_issue_watchers, @project) -%> + <% if @issue.safe_attribute? 'watcher_user_ids' -%> <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label> <% @issue.project.users.sort.each do |user| -%> <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user) %> <%=h user %></label> |