Commit 64f55931b81856c77d4896a5c70edbb94ca1afb0
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'AI3283-integration_with_dspace' into stable
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,6 +9,7 @@ class DspacePlugin < Noosfero::Plugin | ||
9 | end | 9 | end |
10 | 10 | ||
11 | def content_types | 11 | def content_types |
12 | + return [] if !context.kind_of?(CmsController) | ||
12 | if context.respond_to?(:params) && context.params | 13 | if context.respond_to?(:params) && context.params |
13 | types = [] | 14 | types = [] |
14 | parent_id = context.params[:parent_id] | 15 | parent_id = context.params[:parent_id] |