Commit d4e1a3461e11496d2519d6f0d970972d5ab72dc8

Authored by Francisco Júnior
1 parent d5b179a1

dspace_plugin : fix content_types return if context is not cms controller

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
plugins/dspace/lib/dspace_plugin.rb
... ... @@ -9,6 +9,7 @@ class DspacePlugin < Noosfero::Plugin
9 9 end
10 10  
11 11 def content_types
  12 + return [] if !context.kind_of?(CmsController)
12 13 if context.respond_to?(:params) && context.params
13 14 types = []
14 15 parent_id = context.params[:parent_id]
... ...