Skip to content

Commit c10ef2a

Browse files
committed
Only detach Issues from changeset if authorized
A user can detach *any* Issue from a Changeset, even if they do not have access to it (i.e. private Issue), by calling the Source/detach page with the appropriate parameters. Fixes #356
1 parent ddfd7d9 commit c10ef2a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/pages/detach.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
$f_changeset_id = gpc_get_int( 'id' );
1010
$f_bug_id = gpc_get_int( 'bug_id' );
1111

12+
access_ensure_bug_level( config_get('view_bug_threshold'), $f_bug_id );
13+
1214
$t_changeset = SourceChangeset::load( $f_changeset_id );
1315
$t_changeset->load_bugs();
1416

0 commit comments

Comments
 (0)