commit | ff7eef03990faa02d7ad1ff845f6e9525275fd95 | [log] [tgz] |
---|---|---|
author | Brad Larson <bklarson@gmail.com> | Tue May 15 16:58:01 2012 -0500 |
committer | Brad Larson <bklarson@gmail.com> | Mon Jun 04 10:49:26 2012 -0500 |
tree | 3fc4568ff96490687e825ab362f7d6ec42c89e7c | |
parent | 2d872ebff248e205cfec245e01f38c161a440e8d [diff] |
Apply @RequiresCapability to REST API Move the @RequiresCapability from SSHD to gerrit-extension-api. Modify the RestApiServlet to check the current user has the required capabilities. All RestApiServlets must now inject the currentUser provider in their constructor and pass it to the super class. Signed-off-by: Brad Larson <bklarson@gmail.com> Change-Id: Iffc9bc99b8d2fafd07bf624008719b0ec647ce7d