From 2f81eea6219ce9d5704765a539e7272fd320e628 Mon Sep 17 00:00:00 2001 From: David Walsh Date: Thu, 17 Aug 2017 13:46:43 -0500 Subject: Bug 1389372 - Add REST API endpoint to validate whether a BMO user ID can see a given BMO bug --- .../en/default/hook/global/user-error-errors.html.tmpl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'extensions/PhabBugz/template') diff --git a/extensions/PhabBugz/template/en/default/hook/global/user-error-errors.html.tmpl b/extensions/PhabBugz/template/en/default/hook/global/user-error-errors.html.tmpl index 60cd08923..1457e3525 100644 --- a/extensions/PhabBugz/template/en/default/hook/global/user-error-errors.html.tmpl +++ b/extensions/PhabBugz/template/en/default/hook/global/user-error-errors.html.tmpl @@ -18,8 +18,22 @@ [% title = "Invalid Phabricator Sync Groups" %] You must provide a comma delimited list of security groups to sync with Phabricator. + [% ELSIF error == "invalid_phabricator_revision_id" %] [% title = "Invalid Phabricator Revision ID" %] You must provide a valid Phabricator revision ID. +[% ELSIF error == "phabricator_not_enabled" %] + [% title = "Phabricator Support Not Enabled" %] + The Phabricator to Bugzilla library, PhabBugz, + is not enabled in Bugzilla. + +[% ELSIF error == "phabricator_invalid_request_params" %] + [% title = "Incomplete Information Provided by Phabricator" %] + The parameters 'user_id' and '[% terms.bug %]_id' must be provided. + +[% ELSIF error == "phabricator_unauthorized_user" %] + [% title = "Unauthorized User" %] + You do not have permission to use this endpoint. + [% END %] -- cgit v1.2.3-24-g4f1b