Approval workflow edit action replaced with show

This commit is contained in:
Karel Picman 2014-04-07 15:14:28 +02:00
parent 65c7227bd1
commit 6058a737e4
4 changed files with 2 additions and 5 deletions

View File

@ -213,9 +213,6 @@ class DmsfWorkflowsController < ApplicationController
end
end
def edit
end
def update
if request.put? && @dmsf_workflow.update_attributes({:name => params[:name]})
flash[:notice] = l(:notice_successful_update)

View File

@ -36,7 +36,7 @@
<tbody>
<% for workflow in @workflows %>
<tr id="workflow-<%= workflow.id %>" class="<%= cycle('odd', 'even') %>">
<td class="name"><%= link_to(h(workflow.name), edit_dmsf_workflow_path(workflow)) %></td>
<td class="name"><%= link_to(h(workflow.name), dmsf_workflow_path(workflow)) %></td>
<td class="buttons">
<%= delete_link dmsf_workflow_path(workflow) %>
</td>

View File

@ -72,7 +72,7 @@ Redmine::Plugin.register :redmine_dmsf do
:dmsf_links => [:new, :create, :destroy]
}
permission :manage_workflows,
{:dmsf_workflows => [:index, :new, :create, :destroy, :edit, :add_step, :remove_step, :reorder_steps, :update]}
{:dmsf_workflows => [:index, :new, :create, :destroy, :show, :add_step, :remove_step, :reorder_steps, :update]}
permission :force_file_unlock, {}
end