sub auth_delegation_confirm {
my ($self, $args) = @_;
+ my $phab_enabled = Bugzilla->params->{phabricator_enabled};
my $phab_callback_url = Bugzilla->params->{phabricator_auth_callback_url};
my $phab_app_id = Bugzilla->params->{phabricator_app_id};
+ return unless $phab_enabled;
return unless $phab_callback_url;
return unless $phab_app_id;
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');
my ($class) = @_;
my @params = (
+ {
+ name => 'phabricator_enabled',
+ type => 'b',
+ default => 0
+ },
{
name => 'phabricator_base_uri',
type => 't',
[%
param_descs = {
+ phabricator_enabled => 'Enable Phabricator Integration',
phabricator_base_uri => 'Phabricator Base URI',
phabricator_api_key => 'Phabricator User API Key',
phabricator_sync_groups => 'Comma delimited list of Bugzilla groups to sync to Phabricator projects',