# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
--- lightbox2.formatter.inc
+++ lightbox2.formatter.inc
@@ -259,7 +259,7 @@
 function theme_lightbox2_formatter_filefield_lightframe($element) {
   $file = $element['#item'];
   $field = content_fields($element['#field_name']);
-  if (!filefield_view_access($field['field_name'], node_load($file['nid'])) || empty($file['list'])) {
+  if (!filefield_view_access($field['field_name']) || empty($file['list'])) {
     return '';
   }
   if (empty($file['fid']) || !is_file($file['filepath'])) {
