Insufficient permissions for a workflow assigning - fixed

This commit is contained in:
Karel Picman 2013-10-04 11:12:49 +02:00
parent b562e25766
commit c0b94372d1

View File

@ -23,7 +23,7 @@ class DmsfWorkflowsController < ApplicationController
before_filter :find_workflow, :except => [:create, :new, :index, :assign, :assignment]
before_filter :find_project, :except => [:start]
before_filter :authorize_global
before_filter :authorize_custom
before_filter :authorize_custom, :except => [:assignment, :start, :new_action]
def index
if @project
@ -293,4 +293,4 @@ private
def authorize_custom
require_admin unless @project
end
end
end