Commit 64972c9a9a595d8ad1929eabfe1a95156e7aee9f

Authored by Victor Costa
2 parents 55b340af 14be2fff

Merge branch 'hotfixes' of gitlab.com:participa/noosfero into hotfixes

plugins/community_track/lib/community_track_plugin.rb
... ... @@ -13,6 +13,7 @@ class CommunityTrackPlugin < Noosfero::Plugin
13 13 end
14 14  
15 15 def content_types
  16 + return [] if !context.kind_of?(CmsController)
16 17 if context.respond_to?(:params) && context.params
17 18 types = []
18 19 parent_id = context.params[:parent_id]
... ...
plugins/work_assignment/lib/work_assignment_plugin.rb
... ... @@ -18,6 +18,7 @@ class WorkAssignmentPlugin < Noosfero::Plugin
18 18 end
19 19  
20 20 def content_types
  21 + return [] if !context.kind_of?(CmsController)
21 22 [WorkAssignmentPlugin::WorkAssignment] if context.respond_to?(:profile) && context.profile.organization?
22 23 end
23 24  
... ...