From: dklawren Date: Fri, 22 Jun 2018 16:48:27 +0000 (-0400) Subject: Bug 1470485 - Create new policies using PhabricatorProjectsAllPolicyRule instead... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc8dc326b9b68b3b3768a68767da0ec51db6fd78;p=thirdparty%2Fbugzilla.git Bug 1470485 - Create new policies using PhabricatorProjectsAllPolicyRule instead of PhabricatorProjectsPolicyRule --- diff --git a/extensions/PhabBugz/lib/Policy.pm b/extensions/PhabBugz/lib/Policy.pm index 3ad6f284c..1e925f55a 100644 --- a/extensions/PhabBugz/lib/Policy.pm +++ b/extensions/PhabBugz/lib/Policy.pm @@ -116,7 +116,7 @@ sub create { push @{ $data->{policy} }, { action => 'allow', - rule => 'PhabricatorProjectsPolicyRule', + rule => 'PhabricatorProjectsAllPolicyRule', value => $project_phids, }; } @@ -135,7 +135,7 @@ sub _build_rule_projects { my ($self) = @_; return [] unless $self->rules; - my $rule = first { $_->{rule} eq 'PhabricatorProjectsPolicyRule'} @{ $self->rules }; + my $rule = first { $_->{rule} =~ /PhabricatorProjects(?:All)?PolicyRule/ } @{ $self->rules }; return [] unless $rule; return [ map { $_->name }