To remove that button for regular users, copy the following code block to your theme's theme.php file:
$template_album_admin_menu_nonadmin = <<<EOT
<div class="buttonlist align_right">
<ul>
<li>
<a href="modifyalb.php?album={ALBUM_ID}"><span>{MODIFY}</span></a>
</li>
<li>
<a href="editpics.php?album={ALBUM_ID}"><span class="last">{EDIT_PICS}</span></a>
</li>
</ul>
</div>
<div class="clearer"></div>
EOT;
Additionally, open index.php, find
function html_albummenu($id)
{
global $template_album_admin_menu, $lang_album_admin_menu;
static $template = '';
if ($template == '') {
list($timestamp, $form_token) = getFormToken();
$params = array(
'{CONFIRM_DELETE}' => $lang_album_admin_menu['confirm_delete'],
'{DELETE}' => cpg_fetch_icon('delete', 1) . $lang_album_admin_menu['delete'],
'{MODIFY}' => cpg_fetch_icon('modifyalb', 1) . $lang_album_admin_menu['modify'],
'{EDIT_PICS}' => cpg_fetch_icon('edit', 1) . $lang_album_admin_menu['edit_pics'],
'{FORM_TOKEN}' => $form_token,
'{TIMESTAMP}' => $timestamp
);
$template = template_eval($template_album_admin_menu, $params);
}
$params = array(
'{ALBUM_ID}' => $id,
);
return template_eval($template, $params);
}
and replace with
function html_albummenu($id)
{
global $template_album_admin_menu, $template_album_admin_menu_nonadmin, $lang_album_admin_menu;
static $template = '';
if ($template == '') {
list($timestamp, $form_token) = getFormToken();
$params = array(
'{CONFIRM_DELETE}' => $lang_album_admin_menu['confirm_delete'],
'{DELETE}' => cpg_fetch_icon('delete', 1) . $lang_album_admin_menu['delete'],
'{MODIFY}' => cpg_fetch_icon('modifyalb', 1) . $lang_album_admin_menu['modify'],
'{EDIT_PICS}' => cpg_fetch_icon('edit', 1) . $lang_album_admin_menu['edit_pics'],
'{FORM_TOKEN}' => $form_token,
'{TIMESTAMP}' => $timestamp
);
if (GALLERY_ADMIN_MODE) {
$template = template_eval($template_album_admin_menu, $params);
} else {
$template = template_eval($template_album_admin_menu_nonadmin, $params);
}
}
$params = array(
'{ALBUM_ID}' => $id,
);
return template_eval($template, $params);
}