Skip to content

Commit

Permalink
'private' checkbox now visibility for everyone >= threshold, instead …
Browse files Browse the repository at this point in the history
…of >= DEVELOPER. Made sure noone < threshold can post private bugnotes by sending manufactured queries.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1086 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Jeroen Latour committed Jun 6, 2002
1 parent 48157be commit 7daf193
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bugnote_add.php
Expand Up @@ -35,7 +35,7 @@
$t_bugnote_text_id = db_insert_id();

# Check for private bugnotes.
if ($f_private) {
if ( $f_private && access_level_check_greater_or_equal( $g_private_bugnote_threshold ) ) {
$c_view_state = PRIVATE;
} else {
$c_view_state = PUBLIC;
Expand Down
2 changes: 1 addition & 1 deletion bugnote_inc.php
Expand Up @@ -128,7 +128,7 @@
</td>
</tr>
<tr>
<?php if ( access_level_check_greater_or_equal( DEVELOPER ) ) { ?>
<?php if ( access_level_check_greater_or_equal( $g_private_bugnote_threshold ) ) { ?>
<td class="right">
<input type="checkbox" name="f_private"> <?php echo $s_private; ?>
</td>
Expand Down

0 comments on commit 7daf193

Please sign in to comment.