--- embed_widgets.module	2008-08-17 00:32:24.000000000 +0530
+++ embed_widgetsNew.module	2010-08-20 15:56:20.595125000 +0530
@@ -705,7 +705,17 @@ function embed_widgets_source_access($so
   }
   else if ($source['type'] == 'view' && module_exists('views')) {    // Display a view
     $view = views_get_view($source['settings']['view']);
-    return views_access($view);
+    $display = $view->display[$source['settings']['display']];
+    //if user set access restrictions to this display.
+    if (isset($display->display_options['access'])) {
+      $type = $display->display_options['access']['type'];
+      $access_plugin = views_get_plugin('access', $type);
+      $access_plugin->options[$type] = $display->display_options['access'][$type];
+      $access = $access_plugin->get_access_callback();
+      return views_access($access);
+    }
+    //display access restrictions none.
+    return TRUE;
   }
   else if ($source['type'] == 'module') {    // Display a page
     return TRUE;
