Commit 2d5ba9a4 authored by Chris Graham's avatar Chris Graham

Fixed MANTIS-4179 (Deletion options missing from gallery media forms)

parent 7640dd64
......@@ -1290,7 +1290,7 @@ class Module_cms_galleries extends Standard_crud_module
$validated = $myrow['validated'];
$delete_fields = mixed();
if (get_option('cleanup_files') == '0') {
if (get_option('cleanup_files') == '1') {
if (has_delete_permission('mid', get_member(), $myrow['submitter'], 'cms_galleries', array('galleries', $cat))) {
if ($GLOBALS['FORUM_DRIVER']->is_staff(get_member())) {
$radios = form_input_radio_entry('delete', '0', true, do_lang_tempcode('LEAVE'));
......@@ -1901,7 +1901,7 @@ class Module_cms_galleries_alt extends Standard_crud_module
$validated = $myrow['validated'];
$delete_fields = mixed();
if (get_option('cleanup_files') == '0') {
if (get_option('cleanup_files') == '1') {
if (has_delete_permission('mid', get_member(), $myrow['submitter'], 'cms_galleries', array('galleries', $cat))) {
if ($GLOBALS['FORUM_DRIVER']->is_staff(get_member())) {
$radios = form_input_radio_entry('delete', '0', true, do_lang_tempcode('LEAVE'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment