summaryrefslogtreecommitdiffstats
path: root/extensions/PhabBugz
diff options
context:
space:
mode:
authordklawren <dklawren@users.noreply.github.com>2018-06-22 18:48:27 +0200
committerGitHub <noreply@github.com>2018-06-22 18:48:27 +0200
commitfc8dc326b9b68b3b3768a68767da0ec51db6fd78 (patch)
tree38aa05a8f64dd05b73068335a53da6068b67fd3a /extensions/PhabBugz
parent10dfb73b69926f70921787b39d2bc20e8652d524 (diff)
downloadbugzilla-fc8dc326b9b68b3b3768a68767da0ec51db6fd78.tar.gz
bugzilla-fc8dc326b9b68b3b3768a68767da0ec51db6fd78.tar.xz
Bug 1470485 - Create new policies using PhabricatorProjectsAllPolicyRule instead of PhabricatorProjectsPolicyRule
Diffstat (limited to 'extensions/PhabBugz')
-rw-r--r--extensions/PhabBugz/lib/Policy.pm4
1 files 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 }