Skip to content

Commit

Permalink
Fixed file uploads to not show up for VIEWERS.
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@986 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed May 19, 2002
1 parent 5cf2fa4 commit d2aeba9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bug_file_upload_inc.php
Expand Up @@ -10,7 +10,8 @@
?>
<?php # Upload File Form BEGIN ?>
<?php if ( ( ON == $g_allow_file_upload )&&
( $v_status < RESOLVED ) ) { ?>
( $v_status < RESOLVED )&&
( access_level_check_greater_or_equal( REPORTER ) ) ) { ?>
<p>
<div align="center">
<form method="post" enctype="multipart/form-data" action="<?php echo $g_bug_file_add ?>">
Expand Down
1 change: 1 addition & 0 deletions doc/ChangeLog
Expand Up @@ -11,6 +11,7 @@ Mantis
* Fixed problem with CSV not downloading.
* Fixed no colors when using non-English languages (temporary fix).
* Fixed bug_close to add bugnote.
* Fixed file uploads to not show up for VIEWERS.
* Modified core_API.php to always turn magic_quotes_runtime OFF.
* Modified disk uploads to use the file_download.php script.
* Modified bugnote last_modified query slightly.
Expand Down
3 changes: 2 additions & 1 deletion report_bug_advanced_page.php
Expand Up @@ -271,7 +271,8 @@
<textarea name="f_additional_info" cols="60" rows="5" wrap="virtual"><?php echo $f_additional_info ?></textarea>
</td>
</tr>
<?php if ( ON == $g_allow_file_upload ) { ?>
<?php if ( ( ON == $g_allow_file_upload ) &&
access_level_check_greater_or_equal( REPORTER ) ) { ?>
<tr class="row-1">
<td class="category">
<?php echo $s_upload_file ?>
Expand Down
3 changes: 2 additions & 1 deletion report_bug_page.php
Expand Up @@ -143,7 +143,8 @@
<textarea name="f_additional_info" cols="60" rows="5" wrap="virtual"><?php echo $f_additional_info ?></textarea>
</td>
</tr>
<?php if ( ON == $g_allow_file_upload ) { ?>
<?php if ( ( ON == $g_allow_file_upload ) &&
access_level_check_greater_or_equal( REPORTER ) ) { ?>
<tr class="row-1">
<td class="category">
<?php echo $s_upload_file ?>
Expand Down

0 comments on commit d2aeba9

Please sign in to comment.