/
bug_assign.php
34 lines (27 loc) · 995 Bytes
/
bug_assign.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
# Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
# Copyright (C) 2002 - 2003 Mantis Team - mantisbt-dev@lists.sourceforge.net
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
# --------------------------------------------------------
# $Id: bug_assign.php,v 1.29 2003-01-25 21:13:15 jlatour Exp $
# --------------------------------------------------------
?>
<?php
# Assign bug to user then redirect to viewing page
?>
<?php
require_once( 'core.php' );
$t_core_path = config_get( 'core_path' );
require_once( $t_core_path.'bug_api.php' );
?>
<?php login_cookie_check() ?>
<?php
$f_bug_id = gpc_get_int( 'bug_id' );
project_access_check( $f_bug_id );
check_access( config_get( 'handle_bug_threshold' ) );
bug_ensure_exists( $f_bug_id );
bug_assign( $f_bug_id, auth_get_current_user_id() );
print_header_redirect_view( $f_bug_id );
?>