From fc8dc326b9b68b3b3768a68767da0ec51db6fd78 Mon Sep 17 00:00:00 2001 From: dklawren Date: Fri, 22 Jun 2018 12:48:27 -0400 Subject: Bug 1470485 - Create new policies using PhabricatorProjectsAllPolicyRule instead of PhabricatorProjectsPolicyRule --- extensions/PhabBugz/lib/Policy.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } -- cgit v1.2.3-24-g4f1b