Commit 4cad46663982f770047f2c7bba7ee6aea8578a51
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'hotfixes' into stable
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
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 | ... | ... |