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-67ecbb4d7f56master
parent
77e35f99f0
commit
e9928355bc
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue