From 2f3b867fdb5187f88b4f91b5cd1cdcdd46866ec2 Mon Sep 17 00:00:00 2001 From: Gervase Markham Date: Thu, 28 Jul 2016 14:21:14 -0400 Subject: Bug 1183647 - Optional Perl modules related to REST should now be mandatory r=dylan,a=dylan --- rest.cgi | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'rest.cgi') diff --git a/rest.cgi b/rest.cgi index 185b60ddc..9681849b2 100755 --- a/rest.cgi +++ b/rest.cgi @@ -14,11 +14,6 @@ use lib qw(. lib local/lib/perl5); use Bugzilla; use Bugzilla::Constants; -use Bugzilla::Error; -BEGIN { - if (!Bugzilla->feature('rest')) { - ThrowUserError('feature_disabled', { feature => 'rest' }); - } -} + Bugzilla->usage_mode(USAGE_MODE_REST); Bugzilla->api_server->handle(); -- cgit v1.2.3-24-g4f1b