summaryrefslogtreecommitdiffstats
path: root/rest.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'rest.cgi')
-rwxr-xr-xrest.cgi7
1 files changed, 1 insertions, 6 deletions
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();