summaryrefslogtreecommitdiffstats
path: root/extensions/PhabBugz/lib/Policy.pm
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/PhabBugz/lib/Policy.pm')
-rw-r--r--extensions/PhabBugz/lib/Policy.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/extensions/PhabBugz/lib/Policy.pm b/extensions/PhabBugz/lib/Policy.pm
index 23f04b354..8162ac52c 100644
--- a/extensions/PhabBugz/lib/Policy.pm
+++ b/extensions/PhabBugz/lib/Policy.pm
@@ -117,7 +117,10 @@ sub create {
};
}
else {
- push @{ $data->{policy} }, { action => 'allow', value => 'admin' };
+ my $secure_revision = Bugzilla::Extension::PhabBugz::Project->new_from_query({
+ name => 'secure-revision'
+ });
+ push @{ $data->{policy} }, { action => 'allow', value => $secure_revision->phid };
}
my $result = request('policy.create', $data);