diff options
author | David Walsh <davidwalsh83@gmail.com> | 2017-07-31 23:44:31 +0200 |
---|---|---|
committer | dklawren <dklawren@users.noreply.github.com> | 2017-07-31 23:44:31 +0200 |
commit | ce080c6dcec309fa3bcfb922c834266166e57af4 (patch) | |
tree | fa07071d59f23a1cbd6152b3bb919fda18233309 /extensions/PhabBugz/lib/WebService.pm | |
parent | e74d21eaeb3bc4ba3a5521882815b6a6c6d45bcc (diff) | |
download | bugzilla-ce080c6dcec309fa3bcfb922c834266166e57af4.tar.gz bugzilla-ce080c6dcec309fa3bcfb922c834266166e57af4.tar.xz |
Bug 1383108 - Sync security groups with Phabricator push connector
r=dkl
Diffstat (limited to 'extensions/PhabBugz/lib/WebService.pm')
-rw-r--r-- | extensions/PhabBugz/lib/WebService.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/PhabBugz/lib/WebService.pm b/extensions/PhabBugz/lib/WebService.pm index 217ed18dc..11439ba70 100644 --- a/extensions/PhabBugz/lib/WebService.pm +++ b/extensions/PhabBugz/lib/WebService.pm @@ -17,6 +17,7 @@ use Bugzilla::Attachment; use Bugzilla::Bug; use Bugzilla::BugMail; use Bugzilla::Error; +use Bugzilla::Extension::Push::Util qw(is_public); use Bugzilla::User; use Bugzilla::Util qw(correct_urlbase detaint_natural); use Bugzilla::WebService::Constants; @@ -61,7 +62,7 @@ sub revision { # If bug is public then remove privacy policy my $result; - if (!@{ $bug->groups_in }) { + if (is_public($bug)) { $result = make_revision_public($revision_id); } # Else bug is private |