Bug 48299
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@703 6955db30-a419-402b-8a0d-67ecbb4d7f56master
parent
dfd31e172b
commit
ca10f3bb03
Binary file not shown.
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.1 KiB |
|
@ -29,14 +29,14 @@ use Bugzilla::Constants;
|
|||
|
||||
my $cgi = Bugzilla->cgi;
|
||||
my $id = $cgi->param('id');
|
||||
my $user = Bugzilla->login();
|
||||
my $user = Bugzilla->user;
|
||||
my $bug = Bugzilla::Bug->new($id);
|
||||
my $str;
|
||||
my $format = lc $cgi->param('format') || 'short';
|
||||
if (!$user || !$bug->{error} && !$user->can_see_bug($bug->bug_id))
|
||||
{
|
||||
# Access denied
|
||||
$str = "#$id нет доступа";
|
||||
$str = "Bug$id: нет доступа";
|
||||
$bug = undef;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue