diff options
author | David Walsh <davidwalsh83@gmail.com> | 2017-06-06 19:52:36 +0200 |
---|---|---|
committer | David Walsh <davidwalsh83@gmail.com> | 2017-06-06 21:20:37 +0200 |
commit | f02c8bd226d332f6d0ef7d8c55fbace94c055d20 (patch) | |
tree | 0d708a1f375a1a6cc994ed34d37223773129cc19 /extensions/PhabBugz/bin/update_project_members.pl | |
parent | 8de4392bb242d4115c967c1424dc00bee39e939a (diff) | |
download | bugzilla-f02c8bd226d332f6d0ef7d8c55fbace94c055d20.tar.gz bugzilla-f02c8bd226d332f6d0ef7d8c55fbace94c055d20.tar.xz |
Bug 1370378 - Add Phabricator Extension enabled flag to instantly toggle off all Phabricator syncing. r?dkl
Diffstat (limited to 'extensions/PhabBugz/bin/update_project_members.pl')
-rwxr-xr-x | extensions/PhabBugz/bin/update_project_members.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extensions/PhabBugz/bin/update_project_members.pl b/extensions/PhabBugz/bin/update_project_members.pl index 56c471fe8..0aa51e17d 100755 --- a/extensions/PhabBugz/bin/update_project_members.pl +++ b/extensions/PhabBugz/bin/update_project_members.pl @@ -27,6 +27,10 @@ Bugzilla->usage_mode(USAGE_MODE_CMDLINE); my ($phab_uri, $phab_api_key, $phab_sync_groups, $ua); +if (!Bugzilla->params->{phabricator_enabled}) { + exit; +} + # Sanity checks unless ($phab_uri = Bugzilla->params->{phabricator_base_uri}) { ThrowUserError('invalid_phabricator_uri'); |