Bug 143896 - fix user permissions for products when edit visibility of custom fields

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1920 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vkoptev 2014-01-29 11:10:21 +00:00
parent 77e35f99f0
commit e9928355bc
1 changed files with 5 additions and 0 deletions

View File

@ -52,6 +52,11 @@ ThrowUserError('no_valid_field', {'field' => "field"}) unless $field;
my $value = Bugzilla::Field::Choice->type($field)->check($value_name);
ThrowUserError('no_valid_value', {'field' => "value"}) unless $value;
if ($field->name eq 'product')
{
$user->check_can_admin_product($value->name);
}
#
# action='' -> Show list of custom fields
#