summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/MozReview/Extension.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/MozReview/Extension.pm b/extensions/MozReview/Extension.pm
index 1969ade42..907f12e56 100644
--- a/extensions/MozReview/Extension.pm
+++ b/extensions/MozReview/Extension.pm
@@ -82,10 +82,12 @@ sub template_before_process {
sub auth_delegation_confirm {
my ($self, $args) = @_;
my $mozreview_callback_url = Bugzilla->params->{mozreview_auth_callback_url};
+ my $mozreview_app_id = Bugzilla->params->{mozreview_app_id};
return unless $mozreview_callback_url;
+ return unless $mozreview_app_id;
- if (index($args->{callback}, $mozreview_callback_url) == 0) {
+ if (index($args->{callback}, $mozreview_callback_url) == 0 && $args->{app_id} eq $mozreview_app_id) {
${$args->{skip_confirmation}} = 1;
}
}