@ -19,7 +19,7 @@ module Api
extend Pagination::Controller
paginate_model ::Api::V2::PlanningElementType
before_filter :find_optional_project_and_raise_error
before_filter {|controller| controller.find_optional_project_and_raise_error('types') }
before_filter :check_project_exists
def index
@ -53,7 +53,7 @@ end
Redmine::AccessControl.map do |map|
map.permission :view_project,
{
:planning_element_types => [:index, :show],
:types => [:index, :show],
:projects => [:show],
:scenarios => [:index, :show],