Sets controller name to 'types' and adds permissions

pull/294/head
Hagen Schink 11 years ago
parent 60fc9882fe
commit 7090cb5995
  1. 2
      app/controllers/api/v2/planning_element_types_controller.rb
  2. 2
      lib/redmine.rb

@ -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],
:projects => [:show],

Loading…
Cancel
Save