Index: /branches/release-36/lib/MT/CMS/Template.pm
===================================================================
--- /branches/release-36/lib/MT/CMS/Template.pm (revision 2064)
+++ /branches/release-36/lib/MT/CMS/Template.pm (revision 2096)
@@ -15,4 +15,14 @@
     my $q = $app->param;
     my $blog_id = $q->param('blog_id');
+
+    # FIXME: enumeration of types
+    unless ( $blog_id ) {
+        my $type = $q->param('type');
+        return $app->return_to_dashboard( redirect => 1 )
+            unless $type eq 'module'
+                || $type eq 'widget'
+                || $type eq 'widgetset';
+    }
+
     my $type = $q->param('_type');
     my $blog = $app->blog;
