Index: /branches/release-36/lib/MT/CMS/Template.pm
===================================================================
--- /branches/release-36/lib/MT/CMS/Template.pm (revision 2096)
+++ /branches/release-36/lib/MT/CMS/Template.pm (revision 2110)
@@ -18,7 +18,8 @@
     # FIXME: enumeration of types
     unless ( $blog_id ) {
-        my $type = $q->param('type');
+        my $type = $q->param('type') || ( $obj ? $obj->type : undef );
         return $app->return_to_dashboard( redirect => 1 )
             unless $type eq 'module'
+                || $type eq 'custom'
                 || $type eq 'widget'
                 || $type eq 'widgetset';
