Index: simplegallery.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/simplegallery/simplegallery.module,v retrieving revision 1.8 diff -r1.8 simplegallery.module 182a183 > global $user; 213a215,221 > $cell = l(theme('imagecache', $imagecache, $node->{$imagefield}[0]['filepath']),$node->{$imagefield}[0]['filepath'], array('attributes' => array('rel' => 'lightbox[' . $term->name . ']', 'title' => $node->{$imagefield}[0]['data']['title']), 'html'=>TRUE)); > if (user_access('edit any '.$node->type.' content') || > (user_access('edit own '.$node->type.' content') && > $node->uid == $user->uid)) > { > $cell .= l(t('Edit'), "node/$nid/edit"); > } 216c224 < $rows[count($rows)]['data'][] = l(theme('imagecache', $imagecache, $node->{$imagefield}[0]['filepath']),$node->{$imagefield}[0]['filepath'], array('attributes' => array('rel' => 'lightbox[' . $term->name . ']', 'title' => $node->{$imagefield}[0]['data']['title']), 'html'=>TRUE)); --- > $rows[count($rows)]['data'][] = $cell; 220c228 < $rows[count($rows)-1]['data'][] = l(theme('imagecache', $imagecache, $node->{$imagefield}[0]['filepath']),$node->{$imagefield}[0]['filepath'], array('attributes' => array('rel' => 'lightbox[' . $term->name . ']', 'title' => $node->{$imagefield}[0]['data']['title']), 'html'=>TRUE)); --- > $rows[count($rows)-1]['data'][] = $cell; 253c261 < } \ No newline at end of file --- > }