Commit f276a11f authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 551210: Retargetted flags should be deleted if the flag setter has no privs…

Bug 551210: Retargetted flags should be deleted if the flag setter has no privs to set the flag in the new product a=LpSolit
parent b51abfd7
......@@ -550,6 +550,8 @@ sub retarget {
foreach my $flagtype (@flagtypes) {
next if !$flagtype->is_active;
next if (!$flagtype->is_multiplicable && scalar @{$flagtype->{flags}});
next unless (($self->status eq '?' && $self->setter->can_request_flag($flagtype))
|| $self->setter->can_set_flag($flagtype));
$self->{type_id} = $flagtype->id;
delete $self->{type};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment