issue 删除回复的权限问题
This commit is contained in:
parent
38c3422b83
commit
5d47afdc43
|
@ -24,7 +24,7 @@ class IssuesController < ApplicationController
|
||||||
before_filter :find_issues, :only => [:bulk_edit, :bulk_update, :destroy]
|
before_filter :find_issues, :only => [:bulk_edit, :bulk_update, :destroy]
|
||||||
before_filter :find_project, :only => [:new, :create, :update_form]
|
before_filter :find_project, :only => [:new, :create, :update_form]
|
||||||
#before_filter :authorize, :except => [:index, :show]
|
#before_filter :authorize, :except => [:index, :show]
|
||||||
before_filter :authorize, :except => [:index,:add_journal, :add_journal_in_org]
|
before_filter :authorize, :except => [:index,:add_journal, :add_journal_in_org,:delete_journal,:reply,:add_reply]
|
||||||
|
|
||||||
before_filter :find_optional_project, :only => [:index]
|
before_filter :find_optional_project, :only => [:index]
|
||||||
before_filter :check_for_default_issue_status, :only => [:new, :create]
|
before_filter :check_for_default_issue_status, :only => [:new, :create]
|
||||||
|
|
|
@ -20,9 +20,9 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<input name="issue_quote_new" type="hidden" value="<%= %>" />
|
<input name="issue_quote_new" type="hidden" value="<%= %>" />
|
||||||
<fieldset><legend>回复</legend>
|
<!--<fieldset><legend>回复</legend>-->
|
||||||
<%= f.kindeditor :notes, :style => "width:99%;",:height=>'100px', :cssData =>"blockquote { padding:0px}", :rows => "5", :no_label => true, :editor_id=>'issue_journal_kind_reply', at_id: @issue.id, at_type: @issue.class.to_s %>
|
<%#= f.kindeditor :notes, :style => "width:99%;",:height=>'100px', :cssData =>"blockquote { padding:0px}", :rows => "5", :no_label => true, :editor_id=>'issue_journal_kind_reply', at_id: @issue.id, at_type: @issue.class.to_s %>
|
||||||
</fieldset>
|
<!--</fieldset>-->
|
||||||
<!--<%# if @issue.safe_attribute? 'private_notes' %>-->
|
<!--<%# if @issue.safe_attribute? 'private_notes' %>-->
|
||||||
<!--<label for="issue_private_notes"><%#= f.check_box :private_notes, :no_label => true %> <%#= l(:field_private_notes) %></label>-->
|
<!--<label for="issue_private_notes"><%#= f.check_box :private_notes, :no_label => true %> <%#= l(:field_private_notes) %></label>-->
|
||||||
<!--<%# end %>-->
|
<!--<%# end %>-->
|
||||||
|
|
|
@ -70,7 +70,7 @@ ActiveRecord::Schema.define(:version => 20151217051447) do
|
||||||
t.integer "user_id"
|
t.integer "user_id"
|
||||||
t.integer "at_message_id"
|
t.integer "at_message_id"
|
||||||
t.string "at_message_type"
|
t.string "at_message_type"
|
||||||
t.boolean "viewed"
|
t.boolean "viewed", :default => false
|
||||||
t.string "container_type"
|
t.string "container_type"
|
||||||
t.integer "container_id"
|
t.integer "container_id"
|
||||||
t.datetime "created_at", :null => false
|
t.datetime "created_at", :null => false
|
||||||
|
@ -1640,10 +1640,6 @@ ActiveRecord::Schema.define(:version => 20151217051447) do
|
||||||
t.string "extra"
|
t.string "extra"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "temp", :id => false, :force => true do |t|
|
|
||||||
t.integer "id", :default => 0, :null => false
|
|
||||||
end
|
|
||||||
|
|
||||||
create_table "time_entries", :force => true do |t|
|
create_table "time_entries", :force => true do |t|
|
||||||
t.integer "project_id", :null => false
|
t.integer "project_id", :null => false
|
||||||
t.integer "user_id", :null => false
|
t.integer "user_id", :null => false
|
||||||
|
|
Loading…
Reference in New Issue